Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FireLemons committed Sep 30, 2023
1 parent d191124 commit 6c2de7d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/javascript/__tests__/notifier.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,12 @@ describe('notify', () => {
})
})

test('notify should return a jQuery object representing the new notification', (done) => {
test('notify should return a Notification object representing the new notification', (done) => {
$(document).ready(() => {
try {
const returnedMessage = notifier.notify('test', 'info')
const onlyMessage = notificationsElement.children('.success-indicator')
expect(returnedMessage.is(onlyMessage)).toBe(true)
const notification = notifier.notify('test', 'info')
const onlyNotification = notificationsElement.children('.success-indicator')
expect(notification.notificationElement.is(onlyNotification)).toBe(true)

done()
} catch (error) {
Expand Down

0 comments on commit 6c2de7d

Please sign in to comment.