Skip to content
Permalink
Browse files
replaced a matcher
  • Loading branch information
aa7401 committed Sep 15, 2019
1 parent 8941501 commit 5d305c3225907bf5490fa197136ecddd50c0f306
Showing 1 changed file with 2 additions and 3 deletions.
@@ -45,11 +45,10 @@ describe('add()', () => {
// ACT
await todo.add('bread', 4)
await todo.add('bread', 2)
const count = await todo.countItems()
const data = await todo.getAll()
const qty = data[0].qty
// ASSERT (note there are two assertions as stated on line 50)
expect(count).toBe(1)
// ASSERT (note there are two assertions as stated on line 42)
expect(data).toHaveLength(1)
expect(qty).toEqual(6)
done()
})

0 comments on commit 5d305c3

Please sign in to comment.