Skip to content

Instantly share code, notes, and snippets.

@ipeychev
Created August 16, 2013 08:49
Show Gist options
  • Save ipeychev/6248320 to your computer and use it in GitHub Desktop.
Save ipeychev/6248320 to your computer and use it in GitHub Desktop.
(function(){
var YUITest = require('yuitest');
var testCase = new YUITest.TestCase({
'this should work': function() {
YUITest.Assert.isTrue(6 === 6);
}
});
YUITest.TestRunner.add(testCase);
YUITest.TestRunner.run();
}());
@ipeychev
Copy link
Author

Running this via

$ yuitest test123

returns:
Total tests: 0, Failures: 0, Skipped: 0, Time: 0.001 seconds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment