Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mattb20/05e75dc70b03d106d4b15725169086a3 to your computer and use it in GitHub Desktop.
Save mattb20/05e75dc70b03d106d4b15725169086a3 to your computer and use it in GitHub Desktop.
function testDisplayNoteURL() {
var note1 = new Note("some text");
var note2 = new Note("some different text");
var note3 = new Note("more different text");
var note4 = new Note("more different text");
list.store(note1);
list.store(note2);
list.store(note3);
list.store(note4);
var listView = new ListView(list);
var actual = listView.display().includes('<a href="http://localhost:8000/note/1">');
var expected = true;
if (actual === expected) {
console.log("10th test passed");
}
else {
throw new Error ("Link is not displayed");
}
}
testDisplayNoteURL();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment