Created
July 31, 2019 06:59
-
-
Save jasongorman/31341d3d153691362d27cbb0f4ef4fd3 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("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