From 576d4416ec817d82ec2ad4e6425ebe43067610a7 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Fri, 10 Jan 2014 17:24:27 +0000 Subject: [PATCH] file no longer needed mkws-index-jsdom.spec.js does most of the tests already --- test/spec/mkws-index-simple.spec.js | 49 ----------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 test/spec/mkws-index-simple.spec.js diff --git a/test/spec/mkws-index-simple.spec.js b/test/spec/mkws-index-simple.spec.js deleted file mode 100644 index b6a4c14..0000000 --- a/test/spec/mkws-index-simple.spec.js +++ /dev/null @@ -1,49 +0,0 @@ -/* Copyright (c) 2013 IndexData ApS. http://indexdata.com - * - * jQuery test with DOM/windows object - * - */ - - -var fs = require("fs"); -var utils = require("./mkws_utils.js"); - -/* - * simple test with string matching of the HTML page - * - */ - -function html_check(file, tags_array, ignore_doctype) { - var html = fs.readFileSync(file, "utf-8"); - var tags = utils.flat_list(tags_array); - - describe("language.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/language.html', [utils.tags.required, utils.tags.optional, utils.tags.optional2]); -html_check('../examples/htdocs/mobile.html', [utils.tags.required, utils.tags.optional]); -- 1.7.10.4