@@ -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