Skip to content

Commit 0b513cb

Browse files
author
Ammar Dodin
committed
🐛 fix travis build
1 parent 6c31af2 commit 0b513cb

File tree

2 files changed

+10
-17
lines changed

2 files changed

+10
-17
lines changed

test/integration/test.adapter.conversation.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -294,23 +294,6 @@ describe('conversation_integration', function() {
294294
});
295295
});
296296

297-
describe('workspaceStatus()', function() {
298-
it('should get the workspace status', function(done) {
299-
const params = {
300-
workspace_id: workspace1.workspace_id
301-
};
302-
303-
conversation.workspaceStatus(params, function(err, result) {
304-
if (err) {
305-
return done(err);
306-
}
307-
assert.equal(result.workspace_id, workspace1.workspace_id);
308-
assert.equal(result.training, true);
309-
done();
310-
});
311-
});
312-
});
313-
314297
describe('createIntent()', function() {
315298
it('should create an intent', function(done) {
316299
const params = {

test/unit/test.conversation.v1.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
const assert = require('assert');
44
const watson = require('../../index');
5+
const sinon = require('sinon');
56
const nock = require('nock');
67
const extend = require('extend');
78
const pick = require('object.pick');
@@ -911,6 +912,15 @@ describe('conversation-v1', function() {
911912
});
912913
});
913914

915+
describe('workspaceStatus()', function() {
916+
it('should issue a console warning for deprecated method', function() {
917+
const spy = sinon.stub(console, 'warn');
918+
conversation.workspaceStatus({}, noop);
919+
assert(spy.calledOnce);
920+
spy.restore();
921+
});
922+
});
923+
914924
describe('listWorkspaces()', function() {
915925
it('should check no parameters provided (negative test)', function() {
916926
conversation.listWorkspaces({}, missingParameter);

0 commit comments

Comments
 (0)