Created
May 2, 2018 12:24
-
-
Save mattb20/05e75dc70b03d106d4b15725169086a3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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