Skip to content

Commit

Permalink
tests(fix missing assertion calls)
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoDF committed Mar 5, 2020
1 parent 5bcc4c2 commit 6d9e2a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/bind.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ test('class attribute bindings are added by array syntax', async () => {

Alpine.start()

expect(document.querySelector('span').classList.contains('foo')).toBeTruthy
expect(document.querySelector('span').classList.contains('foo')).toBeTruthy()
})

test('class attribute bindings are synced by string syntax', async () => {
Expand All @@ -171,8 +171,8 @@ test('class attribute bindings are synced by string syntax', async () => {

Alpine.start()

expect(document.querySelector('span').classList.contains('bar')).toBeTruthy
expect(document.querySelector('span').classList.contains('baz')).toBeTruthy
expect(document.querySelector('span').classList.contains('bar')).toBeTruthy()
expect(document.querySelector('span').classList.contains('baz')).toBeTruthy()
})

test('boolean attributes set to false are removed from element', async () => {
Expand Down

0 comments on commit 6d9e2a0

Please sign in to comment.