Skip to content

Commit 6eb6144

Browse files
committed
correcting tone analyzer test to use tones rather than tone
1 parent 0fef10e commit 6eb6144

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test.tone_analyzer.v3-beta.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ describe('tone_analyzer.v3', function() {
6161
});
6262

6363
it('tone API should add optional query parameters', function() {
64-
var options = {text: tone_request.text, tone: 'emotion', sentences: true}
64+
var options = {text: tone_request.text, tones: 'emotion', sentences: true};
6565
var req = tone_analyzer.tone(options, noop);
6666
var body = new Buffer(req.body).toString('ascii');
67-
assert.equal(req.uri.href, service.url + tone_path + '?version=2016-02-11&tone=emotion&sentences=true');
67+
assert.equal(req.uri.href, service.url + tone_path + '?version=2016-02-11&tones=emotion&sentences=true');
6868
assert.equal(body, tone_request.text);
6969
assert.equal(req.method, 'POST');
7070
assert.equal(req.headers['content-type'], 'text/plain');

0 commit comments

Comments
 (0)