Skip to content

Commit

Permalink
tests: fix js import
Browse files Browse the repository at this point in the history
  • Loading branch information
srcrip committed Jul 15, 2024
1 parent 0283893 commit d95a364
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'ava'
import createLiveToastHook from './js/live_toast/live_toast.ts'
import { createLiveToastHook } from './js/live_toast/live_toast.ts'

class ViewHookTest {
constructor(hook, element) {
Expand Down Expand Up @@ -39,11 +39,11 @@ test('hook', () => {
expect(hook.element().textContent).toEqual('New content')
})

test('foo', (t) => {
test('foo', t => {
t.pass()
})

test('bar', async (t) => {
test('bar', async t => {
const bar = Promise.resolve('bar')
t.is(await bar, 'bar')
})

0 comments on commit d95a364

Please sign in to comment.