Skip to content
This repository has been archived by the owner on Apr 1, 2019. It is now read-only.

Commit

Permalink
addressing review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
oyiptong committed Sep 11, 2015
1 parent cbdbd6e commit c6a8ea0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/script_test_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ describe("use of HTML fixtures and JS", () => {

var script = document.createElement("script");
script.setAttribute("type", "text/javascript;version=1.8");
script.textContent = "let elem = document.querySelector(\"#element-exists\"); elem.textContent = \"Hello World\";";
script.textContent = `
let elem = document.querySelector("#element-exists");
elem.textContent = "Hello World";
`;
document.body.appendChild(script);

expect(elem.textContent).to.equal("Hello World");
Expand Down

0 comments on commit c6a8ea0

Please sign in to comment.