Skip to content
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dominykas committed Dec 5, 2015
1 parent 79a1cad commit bf28b3e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
2 changes: 1 addition & 1 deletion buster.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ config["browser"] = {
"test/browser/*.js"
],
extensions: [
require(".")
require("./lib/extension")
]
};
4 changes: 0 additions & 4 deletions run-tests.js

This file was deleted.

19 changes: 9 additions & 10 deletions test/browser/html-doc-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,9 @@ buster.testCase("HTML doc (integration)", {
assert.tagName(this.element, "div");
},

"//fails if html doc contains more than one root node": function () {
/*:DOC element = <div></div><div></div>*/

"fails if html doc contains more than one root node": function () {
try {
vm.runInNewContext(htmlDoc.extract(comment), this.context);
/*:DOC element = <div></div><div></div>*/
throw new Error("Did not throw");
} catch (e) {
assert.match(e.message, "HTML doc expected to only contain one root node, found 2");
Expand All @@ -85,12 +83,13 @@ buster.testCase("HTML doc (integration)", {
assert.equals(document.body.firstChild.innerHTML.split("\n").length, 4);
},

"//throws when attempting to add more than one element": function () {
/*:DOC += <div></div><div></div>*/

assert.exception(function () {
vm.runInNewContext(htmlDoc.extract(comment), this.context);
});
"throws when attempting to add more than one element": function () {
try {
/*:DOC += <div></div><div></div>*/
throw new Error("Did not throw");
} catch (e) {
assert.match(e.message, "HTML doc expected to only contain one root node, found 2");
}
},

"allows elements with attributes": function () {
Expand Down

0 comments on commit bf28b3e

Please sign in to comment.