diff --git a/resources/assets/tests/scripts/notify.test.ts b/resources/assets/tests/scripts/modal.test.ts similarity index 76% rename from resources/assets/tests/scripts/notify.test.ts rename to resources/assets/tests/scripts/modal.test.ts index 31bc2af8..9e0a12a7 100644 --- a/resources/assets/tests/scripts/notify.test.ts +++ b/resources/assets/tests/scripts/modal.test.ts @@ -1,5 +1,5 @@ import 'bootstrap' -import * as notify from '@/scripts/notify' +import * as modal from '@/scripts/modal' test('show modal', async () => { process.nextTick(() => { @@ -8,6 +8,6 @@ test('show modal', async () => { ).toBe('general.tip') document.querySelector('.btn-primary')!.click() }) - const { value } = await notify.showModal() + const { value } = await modal.showModal() expect(value).toBe('') })