Skip to content

Instantly share code, notes, and snippets.

@jasongorman
Created July 26, 2019 07:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasongorman/738ccdcb9d2f6321b35d0dc61f7b31c6 to your computer and use it in GitHub Desktop.
Save jasongorman/738ccdcb9d2f6321b35d0dc61f7b31c6 to your computer and use it in GitHub Desktop.
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