Created
July 31, 2019 07:00
-
-
Save jasongorman/9ccc1fb8b6b20bffb729aa02e45ede69 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('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