You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
759 B

  1. "use strict";
  2. var grunt = require('grunt');
  3. var rr = require("rimraf");
  4. exports.docco = {
  5. tearDown: function (callback) {
  6. rr('docs', function(){});
  7. callback();
  8. },
  9. tests: function(test) {
  10. var css = grunt.file.read("docs/docco.css");
  11. var html = grunt.file.read("docs/docco.html");
  12. test.expect(2);
  13. test.ok(css.length > 0, "Should create CSS.");
  14. test.ok(html.length > 0, "Should create HTML.");
  15. test.done();
  16. },
  17. testCustomCss: function(test) {
  18. var css = grunt.file.read("docs/custom.css");
  19. var html = grunt.file.read("docs/docco_test.html");
  20. test.expect(2);
  21. test.ok(css.length > 0, "Should use custom.css");
  22. test.ok(html.length > 0, "Should create HTML.");
  23. test.done();
  24. }
  25. };