Skip to content

Commit

Permalink
return promise tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hogashi committed Feb 2, 2020
1 parent 9a15174 commit e4fe998
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions __tests__/Utils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ describe('Utils', () => {
window.chrome.runtime.sendMessage = jest.fn((_, callback) =>
callback({ data: {} })
);
expect(getOptions()).resolves.toStrictEqual(expected);
return expect(getOptions()).resolves.toStrictEqual(expected);
});

it('設定した値を取得できる', () => {
Expand All @@ -303,7 +303,7 @@ describe('Utils', () => {
window.chrome.runtime.sendMessage = jest.fn((_, callback) =>
callback({})
);
expect(getOptions()).rejects.toBeUndefined();
return expect(getOptions()).rejects.toBeUndefined();
});
});

Expand All @@ -322,7 +322,7 @@ describe('Utils', () => {
OPTION_KEYS.forEach(key => {
expected[key] = isFalse;
});
expect(getOptions()).resolves.toStrictEqual(expected);
return expect(getOptions()).resolves.toStrictEqual(expected);
});
});
});
Expand Down

0 comments on commit e4fe998

Please sign in to comment.