Skip to content

Commit 3d78728

Browse files
committed
test: fix skipping two integration tests without auth.js
1 parent 162c398 commit 3d78728

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/integration/assistant.v2.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
const AssistantV2 = require('../../assistant/v2');
44
const authHelper = require('../resources/auth_helper.js');
5-
6-
const auth = authHelper.auth.assistant;
7-
auth.version = '2019-03-27';
5+
const auth = authHelper.auth;
6+
const describe = authHelper.describe; // this runs describe.skip if there is no auth.js file :)
87

98
describe('assistant v2 integration', function() {
10-
const assistant = new AssistantV2(auth);
11-
const assistant_id = auth.assistant_id;
9+
auth.assistant.version = '2019-03-27';
10+
const assistant = new AssistantV2(auth.assistant);
11+
const assistant_id = auth.assistant.assistant_id;
1212
let session_id;
1313

1414
it('should createSession', function(done) {

test/integration/compare_comply.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const authHelper = require('../resources/auth_helper.js');
66
const auth = authHelper.auth;
77
const describe = authHelper.describe; // this runs describe.skip if there is no auth.js file :)
88

9-
const compare_comply = new CompareComply(auth.compare_comply);
9+
const compare_comply = auth ? new CompareComply(auth.compare_comply) : null;
1010

1111
describe('html conversion', () => {
1212
test('convertToHtml', done => {

0 commit comments

Comments
 (0)