@@ -23,7 +23,7 @@ describe('natural_language_understanding', function() {
23
23
nlu = new watson . NaturalLanguageUnderstandingV1 ( {
24
24
username : 'user' ,
25
25
password : 'pass' ,
26
- version : '2017-02-27 ' ,
26
+ version : '2018-04-05 ' ,
27
27
} ) ;
28
28
nock . disableNetConnect ( ) ;
29
29
} ) ;
@@ -72,7 +72,7 @@ describe('natural_language_understanding', function() {
72
72
] ,
73
73
} ) ;
74
74
const nluHyphenated = new watson . NaturalLanguageUnderstandingV1 ( {
75
- version : '2017-02-27 ' ,
75
+ version : '2018-04-05 ' ,
76
76
} ) ;
77
77
assert ( nluHyphenated ) ;
78
78
assert . equal ( nluHyphenated . getCredentials ( ) . username , 'hyphenated-user' ) ;
@@ -84,7 +84,7 @@ describe('natural_language_understanding', function() {
84
84
process . env . NATURAL_LANGUAGE_UNDERSTANDING_URL =
85
85
'https://gateway.watsonplatform.net/natural-language-understanding/api' ;
86
86
const nluUnderscore = new watson . NaturalLanguageUnderstandingV1 ( {
87
- version : '2017-02-27 ' ,
87
+ version : '2018-04-05 ' ,
88
88
} ) ;
89
89
assert ( nluUnderscore ) ;
90
90
assert . equal ( nluUnderscore . getCredentials ( ) . username , 'user' ) ;
@@ -116,7 +116,7 @@ describe('natural_language_understanding', function() {
116
116
117
117
it ( 'analyze()' , function ( done ) {
118
118
const mockApi = nock ( watson . NaturalLanguageUnderstandingV1 . URL )
119
- . post ( '/v1/analyze?version=' + '2017-02-27 ' )
119
+ . post ( '/v1/analyze?version=' + '2018-04-05 ' )
120
120
. reply ( 200 , { } ) ;
121
121
122
122
const options = {
@@ -133,7 +133,7 @@ describe('natural_language_understanding', function() {
133
133
134
134
it ( 'should list models' , function ( done ) {
135
135
const mockApi = nock ( watson . NaturalLanguageUnderstandingV1 . URL )
136
- . get ( '/v1/models?version=' + '2017-02-27 ' )
136
+ . get ( '/v1/models?version=' + '2018-04-05 ' )
137
137
. reply ( 200 , { } ) ;
138
138
139
139
nlu . listModels ( { } , err => {
@@ -160,7 +160,7 @@ describe('natural_language_understanding', function() {
160
160
'/v1/models/' +
161
161
payload . model_id +
162
162
'?version=' +
163
- '2017-02-27 '
163
+ '2018-04-05 '
164
164
) ;
165
165
assert . equal ( req . method , 'DELETE' ) ;
166
166
} ) ;
0 commit comments