Skip to content

Commit 9f10898

Browse files
committed
refactor(tone-analyzer): remove compatibility layer for tone analyzer
BREAKING CHANGE: Deprecated methods in Tone Analyzer are no longer available. Changed parameter names are no longer interally corrected. To migrate your code, use the methods and parameters currently available with the service as documented here: https://www.ibm.com/watson/developercloud/tone-analyzer/api/v3/node.html?node
1 parent 1b27685 commit 9f10898

4 files changed

Lines changed: 394 additions & 640 deletions

File tree

test/unit/test.adapter.tone_analyzer.v3.js

Lines changed: 0 additions & 186 deletions
This file was deleted.

test/unit/test.tone_analyzer.v3.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,13 @@ describe('tone_analyzer.v3', function() {
180180
});
181181
});
182182

183-
it('tone-chat API should add optional language parameters', function() {
183+
it('toneChat API should add optional language parameters', function() {
184184
const options = {
185185
utterances: [{ text: 'My charger isn’t working.', user: 'customer' }],
186186
content_language: 'en',
187187
accept_language: 'en',
188188
};
189-
const req = tone_analyzer.tone_chat(options, noop);
189+
const req = tone_analyzer.toneChat(options, noop);
190190
assert.equal(req.uri.href, service.url + tone_chat_path + '?version=2017-09-21');
191191
assert.equal(req.method, 'POST');
192192
assert.equal(req.headers['Content-Type'], 'application/json');

0 commit comments

Comments
 (0)