Guest User

Untitled

a guest
Jun 21st, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. var YUI = require("yui3").YUI
  2. , otherSuite = require("./other_suite")
  3. ;
  4.  
  5. YUI({logInclude:{TestRunner:true}}).use("test", function(Y) {
  6. var suite = new Y.Test.Suite("Server Test Suite");
  7.  
  8. var test_nothing = new Y.Test.Case({
  9. name: "Testing nothing",
  10. "testing nothing special": function() {
  11. Y.Assert.areEqual(5,5);
  12. }
  13. });
  14. suite.add(test_nothing)
  15.  
  16. Y.Test.Runner.add(suite);
  17. //Y.Test.Runner.add(otherSuite);
  18. //Y.Test.Runner.run(); // works totally fine
  19. var tap = Y.Test.Runner.getResult(Y.Test.Format.TAP);
  20. console.log(tap); // nothing
  21. });
Add Comment
Please, Sign In to add comment