Skip to content

Commit b149671

Browse files
authored
Merge pull request #868 from MasterOdin/skip_tests
test: fix skipping two integration tests without auth.js
2 parents 9c41be4 + a385669 commit b149671

File tree

2 files changed

+254
-253
lines changed

2 files changed

+254
-253
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) {

0 commit comments

Comments
 (0)