Skip to content

Commit 708c2d4

Browse files
committed
refactor tests
1 parent e7a03ca commit 708c2d4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

spec/actions/checkAvailability.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ describe('Outlook Check Availability', function test() {
6565
action.process.call(self, {
6666
body: jsonIn
6767
}, cfg, {})
68+
.then(() => done.fail(new Error('Error is expected')))
6869
.catch(err => {
6970
expect(err).toEqual(jasmine.any(Error));
7071
expect(err.message).toEqual('Failed to refresh token');

spec/actions/findNextAvailableTime.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ describe('Outlook Find next available time', function test() {
6969
action.process.call(self, {
7070
body: jsonIn
7171
}, cfg, {})
72+
.then(() => done.fail(new Error('Error is expected')))
7273
.catch(err => {
7374
expect(err).toEqual(jasmine.any(Error));
7475
expect(err.message).toEqual('Failed to refresh token');

0 commit comments

Comments
 (0)