Created
July 26, 2019 07:46
-
-
Save jasongorman/738ccdcb9d2f6321b35d0dc61f7b31c6 to your computer and use it in GitHub Desktop.
This file contains 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
describe('search for a CD', function(){ | |
describe('catalogue contains matching CD', function(){ | |
it('finds the CD that matches title and artist', function(){ | |
const title = 'Empath', artist = 'Devin Townsend'; | |
const cd = new CD(9.99, 1, title, artist); | |
const catalogue = new Catalogue(contents=[cd]); | |
assert.strictEqual(catalogue.search(title, artist), cd); | |
}) | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment