Skip to content

Commit df7fc0c

Browse files
authored
Merge pull request watson-developer-cloud#676 from aluu317/newVersion
Add new version date '2018-04-05' in examples for NLU
2 parents a9b63ac + 24acbf4 commit df7fc0c

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ var NaturalLanguageUnderstandingV1 = require('watson-developer-cloud/natural-lan
290290
var nlu = new NaturalLanguageUnderstandingV1({
291291
username: '<username>',
292292
password: '<password>',
293-
version: '2017-02-27',
293+
version: '2018-04-05',
294294
url: 'https://gateway.watsonplatform.net/natural-language-understanding/api/'
295295
});
296296

examples/natural_language_understanding.v1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var nlu = new NaturalLanguageUnderstandingV1({
99
// NATURAL_LANGUAGE_UNDERSTANDING_USERNAME & NATURAL_LANGUAGE_UNDERSTANDING_PASSWORD
1010
// username: '<username>'.
1111
// password: '<password>',
12-
version: '2017-02-27',
12+
version: '2018-04-05',
1313
url: 'https://gateway.watsonplatform.net/natural-language-understanding/api/'
1414
});
1515

test/unit/test.natural_language_understanding.v1.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ describe('natural_language_understanding', function() {
2323
nlu = new watson.NaturalLanguageUnderstandingV1({
2424
username: 'user',
2525
password: 'pass',
26-
version: '2017-02-27',
26+
version: '2018-04-05',
2727
});
2828
nock.disableNetConnect();
2929
});
@@ -72,7 +72,7 @@ describe('natural_language_understanding', function() {
7272
],
7373
});
7474
const nluHyphenated = new watson.NaturalLanguageUnderstandingV1({
75-
version: '2017-02-27',
75+
version: '2018-04-05',
7676
});
7777
assert(nluHyphenated);
7878
assert.equal(nluHyphenated.getCredentials().username, 'hyphenated-user');
@@ -84,7 +84,7 @@ describe('natural_language_understanding', function() {
8484
process.env.NATURAL_LANGUAGE_UNDERSTANDING_URL =
8585
'https://gateway.watsonplatform.net/natural-language-understanding/api';
8686
const nluUnderscore = new watson.NaturalLanguageUnderstandingV1({
87-
version: '2017-02-27',
87+
version: '2018-04-05',
8888
});
8989
assert(nluUnderscore);
9090
assert.equal(nluUnderscore.getCredentials().username, 'user');
@@ -116,7 +116,7 @@ describe('natural_language_understanding', function() {
116116

117117
it('analyze()', function(done) {
118118
const mockApi = nock(watson.NaturalLanguageUnderstandingV1.URL)
119-
.post('/v1/analyze?version=' + '2017-02-27')
119+
.post('/v1/analyze?version=' + '2018-04-05')
120120
.reply(200, {});
121121

122122
const options = {
@@ -133,7 +133,7 @@ describe('natural_language_understanding', function() {
133133

134134
it('should list models', function(done) {
135135
const mockApi = nock(watson.NaturalLanguageUnderstandingV1.URL)
136-
.get('/v1/models?version=' + '2017-02-27')
136+
.get('/v1/models?version=' + '2018-04-05')
137137
.reply(200, {});
138138

139139
nlu.listModels({}, err => {
@@ -160,7 +160,7 @@ describe('natural_language_understanding', function() {
160160
'/v1/models/' +
161161
payload.model_id +
162162
'?version=' +
163-
'2017-02-27'
163+
'2018-04-05'
164164
);
165165
assert.equal(req.method, 'DELETE');
166166
});

0 commit comments

Comments
 (0)