test: fix index.spec.ts typing (#8201)

This commit is contained in:
neverland
2021-02-23 19:43:29 +08:00
committed by GitHub
parent f0f89f1c4c
commit 1170262d72
12 changed files with 34 additions and 45 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ test('should emit load event after image loaded', async () => {
await wrapper.find('img').trigger('load');
expect(wrapper.emitted('load')[0][0]).toBeTruthy();
expect(wrapper.emitted<[Event]>('load')[0][0]).toBeTruthy();
expect(wrapper.html()).toMatchSnapshot();
});
@@ -37,7 +37,7 @@ test('should emit error event when load image failed', () => {
});
wrapper.find('img').trigger('error');
expect(wrapper.emitted('error')[0][0]).toBeTruthy();
expect(wrapper.emitted<[Event]>('error')[0][0]).toBeTruthy();
});
test('should render loading placeholder when using lazy-load prop', () => {