X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=test%2Fspec%2Fmkws-index-simple.spec.js;h=50ebd65119e853f57c0bae95c751a18eba475bc6;hb=ed3713eb14d17c063d5153c20bab04debeb427f2;hp=7fd542f8c9871078c21823fb3084b9d7ed248ebe;hpb=f05c96324c54716ddbe5ceb4ea1c3361e11c0c6e;p=mkws-moved-to-github.git diff --git a/test/spec/mkws-index-simple.spec.js b/test/spec/mkws-index-simple.spec.js index 7fd542f..50ebd65 100644 --- a/test/spec/mkws-index-simple.spec.js +++ b/test/spec/mkws-index-simple.spec.js @@ -13,36 +13,36 @@ var utils = require("./mkws_utils.js"); * */ -function html_check (file, tags_array, ignore_doctype) { - var html = fs.readFileSync(file, "utf-8"); - var tags = utils.flat_list(tags_array); - - describe("index-full.html string test for " + file, function() { - it("html test", function() { - expect(html).toBeDefined(); - - // forgotten doctype declaration - if (!ignore_doctype) { - expect(html).toMatch(//); - expect(html).toMatch(/<\/html.*?>/); - } - expect(html).toMatch(//); - expect(html).toMatch(//); - expect(html).toMatch(/<\/head.*?>/); - expect(html).toMatch(/<\/body.*?>/); - - expect(html).toMatch(/.+<\/title>/i); - expect(html).toMatch(/'; - // console.log(data) - expect(html).toMatch(data); - } +function html_check(file, tags_array, ignore_doctype) { + var html = fs.readFileSync(file, "utf-8"); + var tags = utils.flat_list(tags_array); + + describe("index-full.html string test for " + file, function () { + it("html test", function () { + expect(html).toBeDefined(); + + // forgotten doctype declaration + if (!ignore_doctype) { + expect(html).toMatch(//); + expect(html).toMatch(/<\/html.*?>/); + } + expect(html).toMatch(//); + expect(html).toMatch(//); + expect(html).toMatch(/<\/head.*?>/); + expect(html).toMatch(/<\/body.*?>/); + + expect(html).toMatch(/.+<\/title>/i); + expect(html).toMatch(/'; + // console.log(data) + expect(html).toMatch(data); + } + }); }); - }); } html_check('../examples/htdocs/index-full.html', [utils.tags.required, utils.tags.optional, utils.tags.optional2]);