Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe('stockBooks check', () => {
- it('with given array of new books', () => {
- assert.equal(myClass.books.length,0);
- assert.equal(myClass.books.length,2);
- assert.equal(JSON.stringify(myClass.stockBooks(['Book1-Albert', 'Book2-John']), '[{"title":"Book1","author":"Albert"},{"title":"Book2","author":"John"}]');
- });
- });
- RAW Paste Data
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement