@@ -7,7 +7,6 @@ const authHelper = require('./auth_helper.js');
77const auth = authHelper . auth ;
88const describe = authHelper . describe ; // this runs describe.skip if there is no auth.js file :)
99const assign = require ( 'object.assign' ) ; // for node v0.12 compatibility
10- const ConversationV1 = require ( '../../conversation/v1' ) ;
1110
1211const extend = require ( 'extend' ) ;
1312
@@ -102,16 +101,19 @@ const test_dialog_node_update = 'updated_node';
102101// changing language is forbidden starting with VERSION_DATE_2017_05_26
103102const workspace1 = extend ( true , { } , workspace , intents , { language : workspace . language } ) ;
104103
105- describe ( 'conversation_integration ' , function ( ) {
104+ describe ( 'conversation_adapter_integration ' , function ( ) {
106105 this . timeout ( TEN_SECONDS ) ;
107106 this . slow ( TWO_SECONDS ) ; // this controls when the tests get a colored warning for taking too long
108107 // this.retries(1);
109108
110109 let conversation ;
111110
112111 before ( function ( ) {
113- auth . conversation . version_date = ConversationV1 . VERSION_DATE_2017_05_26 ;
114- conversation = watson . conversation ( auth . conversation ) ;
112+ const constructorParams = assign ( { } , auth . conversation , {
113+ version : 'v1' ,
114+ version_date : '2017-05-26'
115+ } ) ;
116+ conversation = watson . conversation ( constructorParams ) ;
115117 nock . enableNetConnect ( ) ;
116118 } ) ;
117119
@@ -140,7 +142,8 @@ describe('conversation_integration', function() {
140142
141143 it ( 'dialog_stack with 2017-02-03 version_date' , function ( done ) {
142144 const constructorParams = assign ( { } , auth . conversation , {
143- version_date : ConversationV1 . VERSION_DATE_2017_02_03
145+ version : 'v1' ,
146+ version_date : '2017-02-03'
144147 } ) ;
145148 const conversation = watson . conversation ( constructorParams ) ;
146149
@@ -162,7 +165,8 @@ describe('conversation_integration', function() {
162165
163166 it ( 'dialog_stack with 2016-09-20 version_date' , function ( done ) {
164167 const constructorParams = assign ( { } , auth . conversation , {
165- version_date : ConversationV1 . VERSION_DATE_2016_09_20
168+ version : 'v1' ,
169+ version_date : '2016-09-20'
166170 } ) ;
167171 const conversation = watson . conversation ( constructorParams ) ;
168172
@@ -184,7 +188,8 @@ describe('conversation_integration', function() {
184188
185189 it ( 'dialog_stack with 2016-07-11 version_date' , function ( done ) {
186190 const constructorParams = assign ( { } , auth . conversation , {
187- version_date : ConversationV1 . VERSION_DATE_2016_07_11
191+ version : 'v1' ,
192+ version_date : '2016-07-11'
188193 } ) ;
189194 const conversation = watson . conversation ( constructorParams ) ;
190195
0 commit comments