Skip to content

Instantly share code, notes, and snippets.

@jasongorman
Last active July 31, 2019 07:31
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/e71cf9779d9d56ada93d63fee01d0259 to your computer and use it in GitHub Desktop.
Save jasongorman/e71cf9779d9d56ada93d63fee01d0259 to your computer and use it in GitHub Desktop.
describe('CD not in customer collection', function(){
it('does not allow leaving review', function(){
const cd = new CD(0,0, new Description('Obzen', 'Meshuggah'));
const customer = new Customer('Jason');
const review = new Review(customer, rating=5);
assert.throws(() => cd.leaveReview(review), NotInCustomerCollectionError);
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment