Skip to content

Instantly share code, notes, and snippets.

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