From fab2859e81ebbf4648a7133a34bd7f712c3416dc Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Wed, 21 Aug 2013 16:39:54 +0200 Subject: [PATCH] check for missing elements --- test/spec/mkws-index-full.spec.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/spec/mkws-index-full.spec.js b/test/spec/mkws-index-full.spec.js index 5e86891..52b9746 100644 --- a/test/spec/mkws-index-full.spec.js +++ b/test/spec/mkws-index-full.spec.js @@ -93,4 +93,11 @@ describe("index-full.html jsdom + jquery", function() { expect($("#" + tags[i]).length == 1).toEqual(true); } }); + + it("html jquery fail test", function() { + expect(html).toBeDefined(); + + expect($("body_does_not_exists").length == 1).toEqual(false); + expect($("#body_does_not_exists").length == 1).toEqual(false); + }); }); -- 1.7.10.4