Skip to content

Commit

Permalink
test: coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Jan 19, 2024
1 parent 229f875 commit 1f09475
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/fixture/import.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import glob from 'glob';
import tryCatch from 'try-catch';

export default glob;
export default tryCatch;
6 changes: 3 additions & 3 deletions lib/mock-import.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ test('mock-import: mockImport: default transform', async (t) => {
});

test('mock-import: mockImport: reImportDefault', async (t) => {
mockImport('glob', 'hello');
mockImport('try-catch', 'hello');

const result = await reImportDefault('./fixture/import');
stopAll();
Expand All @@ -58,7 +58,7 @@ test('mock-import: mockImport: reImportDefault: cannot resolve', async (t) => {
});

test('mock-import: mockImport: reImport', async (t) => {
mockImport('glob', 'hello');
mockImport('try-catch', 'hello');

const result = await reImport('./fixture/import');

Expand Down Expand Up @@ -106,7 +106,7 @@ test('mock-import: mockImport: load', async (t) => {
source: await readFile(new URL(name, import.meta.url).pathname, 'utf8'),
});

mockImport('glob', 'hello');
mockImport('try-catch', 'hello');
global.__mockImportReImports.add(pathname);

const result = await load(url.href, context, defaultLoad);
Expand Down

0 comments on commit 1f09475

Please sign in to comment.