Skip to content

Commit 40b137d

Browse files
committed
test: update tests to match latest generated changes
1 parent 851fc18 commit 40b137d

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

test/integration/test.assistant.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -958,13 +958,13 @@ describe('assistant_integration', function() {
958958
});
959959
});
960960

961-
describe('listEntityMentions()', function() {
961+
describe('listMentions()', function() {
962962
it('should return an EntityMentionCollection', function(done) {
963963
const params = {
964964
workspace_id: workspace1.workspace_id,
965965
entity: test_entities_update.entity,
966966
};
967-
assistant.listEntityMentions(params, function(err, result) {
967+
assistant.listMentions(params, function(err, result) {
968968
if (err) {
969969
return done(err);
970970
}

test/integration/test.conversation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -954,13 +954,13 @@ describe('conversation_integration', function() {
954954
});
955955
});
956956

957-
describe('listEntityMentions()', function() {
957+
describe('listMentions()', function() {
958958
it('should return an EntityMentionCollection', function(done) {
959959
const params = {
960960
workspace_id: workspace1.workspace_id,
961961
entity: test_entities_update.entity,
962962
};
963-
conversation.listEntityMentions(params, function(err, result) {
963+
conversation.listMentions(params, function(err, result) {
964964
if (err) {
965965
return done(err);
966966
}

test/unit/test.assistant.v1.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -919,12 +919,12 @@ describe('assistant-v1', function() {
919919
});
920920
});
921921

922-
describe('listEntityMentions()', function() {
922+
describe('listMentions()', function() {
923923
it('should check no parameters provided (negative test)', function() {
924-
assistant.listEntityMentions({}, missingParameter);
925-
assistant.listEntityMentions(null, missingParameter);
926-
assistant.listEntityMentions(undefined, missingParameter);
927-
assistant.listEntityMentions({ workspace_id: '123' }, missingParameter);
924+
assistant.listMentions({}, missingParameter);
925+
assistant.listMentions(null, missingParameter);
926+
assistant.listMentions(undefined, missingParameter);
927+
assistant.listMentions({ workspace_id: '123' }, missingParameter);
928928
});
929929

930930
it('should generate a valid payload', function() {
@@ -946,7 +946,7 @@ describe('assistant-v1', function() {
946946
params.export +
947947
'&include_audit=' +
948948
params.include_audit;
949-
const req = assistant.listEntityMentions(params, noop);
949+
const req = assistant.listMentions(params, noop);
950950
assert.equal(req.uri.href, path);
951951
assert.equal(req.method, 'GET');
952952
});

test/unit/test.conversation.v1.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -917,12 +917,12 @@ describe('conversation-v1', function() {
917917
});
918918
});
919919

920-
describe('listEntityMentions()', function() {
920+
describe('listMentions()', function() {
921921
it('should check no parameters provided (negative test)', function() {
922-
conversation.listEntityMentions({}, missingParameter);
923-
conversation.listEntityMentions(null, missingParameter);
924-
conversation.listEntityMentions(undefined, missingParameter);
925-
conversation.listEntityMentions({ workspace_id: '123' }, missingParameter);
922+
conversation.listMentions({}, missingParameter);
923+
conversation.listMentions(null, missingParameter);
924+
conversation.listMentions(undefined, missingParameter);
925+
conversation.listMentions({ workspace_id: '123' }, missingParameter);
926926
});
927927

928928
it('should generate a valid payload', function() {
@@ -944,7 +944,7 @@ describe('conversation-v1', function() {
944944
params.export +
945945
'&include_audit=' +
946946
params.include_audit;
947-
const req = conversation.listEntityMentions(params, noop);
947+
const req = conversation.listMentions(params, noop);
948948
assert.equal(req.uri.href, path);
949949
assert.equal(req.method, 'GET');
950950
});

0 commit comments

Comments
 (0)