Skip to content

Commit

Permalink
Fix race condition in ExportsStorage-test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
trotzig committed Dec 1, 2021
1 parent 62ce578 commit 3dec804
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/__tests__/ExportsStorage-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ it('can add default exports', () => subject
expect(rows[0].isDefault).toEqual(true);
})));

it('can search for modules', () => {
it('can search for modules', () =>
Promise.all([
subject.update({
names: ['Foo'],
Expand Down Expand Up @@ -62,8 +62,7 @@ it('can search for modules', () => {
expect(rows[2].path).toEqual('./types/Bar.js');
expect(rows[2].name).toEqual('BarType');
expect(rows[2].isType).toBeTruthy();
}));
});
})));

it('can add non-default exports', () => subject
.update({
Expand Down

0 comments on commit 3dec804

Please sign in to comment.