check for missing elements
authorWolfram Schneider <wosch@indexdata.dk>
Wed, 21 Aug 2013 14:39:54 +0000 (16:39 +0200)
committerWolfram Schneider <wosch@indexdata.dk>
Wed, 21 Aug 2013 14:39:54 +0000 (16:39 +0200)
test/spec/mkws-index-full.spec.js

index 5e86891..52b9746 100644 (file)
@@ -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);
+  });
 });