Skip to content

Instantly share code, notes, and snippets.

@jasongorman
Created July 31, 2019 07:00
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/9ccc1fb8b6b20bffb729aa02e45ede69 to your computer and use it in GitHub Desktop.
Save jasongorman/9ccc1fb8b6b20bffb729aa02e45ede69 to your computer and use it in GitHub Desktop.
describe('Rating and text', function(){
it('adds the text to the CDs reviews', function(){
const cd = new CD(0,0, new Description('Obzen', 'Meshuggah'));
const review = new Review(rating=5, text='I loved this album!');
cd.leaveReview(review);
assert.equal(cd.reviews.filter((review) => review.text == 'I loved this album!')[0], review);
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment