@@ -88,7 +88,7 @@ test.serial('sends correct request parameters - en-US', t => {
8888 }
8989 } )
9090
91- return action . startConversation ( '' )
91+ return action . start ( '' )
9292 . then ( res => {
9393 t . pass ( )
9494 mockResponse . restore ( )
@@ -123,11 +123,11 @@ test.serial('sends correct request parameters - fr-FR', t => {
123123 }
124124 } )
125125
126- action . setLocale ( 'fr-FR' )
127- return action . startConversation ( '' )
126+ action . locale = 'fr-FR'
127+ return action . start ( '' )
128128 . then ( res => {
129129 t . pass ( )
130- action . setLocale ( 'en-US' )
130+ action . locale = 'en-US'
131131 mockResponse . restore ( )
132132 } )
133133} )
@@ -140,7 +140,7 @@ test.serial('opens and exits action', t => {
140140 return conversation
141141 } )
142142
143- return action . startConversation ( '' )
143+ return action . start ( '' )
144144 . then ( ( res : AssistResponse ) => {
145145 t . deepEqual ( res , Sample . NUMBER_GENIE_WELCOME_VALUES )
146146 mockResponse . restore ( )
@@ -155,7 +155,7 @@ test.serial('verifies parsing closing response of conversation', t => {
155155 return conversation
156156 } )
157157
158- return action . startConversation ( '' )
158+ return action . start ( '' )
159159 . then ( ( res : AssistResponse ) => {
160160 t . is ( res . textToSpeech [ 0 ] ,
161161 '<speak>OK, I\'m already thinking of a number for next time.</speak>' )
@@ -173,7 +173,7 @@ test.serial('verifies parsing textToSpeech, displayText, suggestions', t => {
173173 return conversation
174174 } )
175175
176- return action . startConversation ( '' )
176+ return action . start ( '' )
177177 . then ( ( res : AssistResponse ) => {
178178 t . is ( res . textToSpeech [ 0 ] , 'Hi there!' )
179179 t . is ( res . textToSpeech [ 1 ] , 'I can show you basic cards, lists and carousels as well as ' +
@@ -195,7 +195,7 @@ test.serial('verifies parsing basic cards', t => {
195195 return conversation
196196 } )
197197
198- return action . startConversation ( '' )
198+ return action . start ( '' )
199199 . then ( ( res : AssistResponse ) => {
200200 const basicCard = res . cards ! [ 0 ]
201201 t . is ( basicCard . title , 'Title: this is a title' )
@@ -222,7 +222,7 @@ test.serial('verifies parsing a browse carousel', t => {
222222 return conversation
223223 } )
224224
225- return action . startConversation ( '' )
225+ return action . start ( '' )
226226 . then ( ( res : AssistResponse ) => {
227227 const firstItem = res . carousel ! [ 0 ]
228228 const secondItem = res . carousel ! [ 1 ]
@@ -246,7 +246,7 @@ test.serial('verifies parsing a carousel', t => {
246246 return conversation
247247 } )
248248
249- return action . startConversation ( '' )
249+ return action . start ( '' )
250250 . then ( ( res : AssistResponse ) => {
251251 const firstItem = res . carousel ! [ 0 ]
252252 t . is ( res . carousel ! . length , 4 )
@@ -275,7 +275,7 @@ test.serial('verifies parsing a list', t => {
275275 return conversation
276276 } )
277277
278- return action . startConversation ( '' )
278+ return action . start ( '' )
279279 . then ( ( res : AssistResponse ) => {
280280 const firstItem = res . list ! . items [ 0 ]
281281 t . is ( res . list ! . items . length , 4 )
@@ -305,7 +305,7 @@ test.serial('verifies parsing a media response', t => {
305305 return conversation
306306 } )
307307
308- return action . startConversation ( '' )
308+ return action . start ( '' )
309309 . then ( ( res : AssistResponse ) => {
310310 t . is ( res . mediaResponse ! . type , 'AUDIO' )
311311 t . is ( res . mediaResponse ! . name , 'Jazz in Paris' )
@@ -326,7 +326,7 @@ test.serial('verifies parsing a linkout suggestion', t => {
326326 return conversation
327327 } )
328328
329- return action . startConversation ( '' )
329+ return action . start ( '' )
330330 . then ( ( res : AssistResponse ) => {
331331 t . is ( res . linkOutSuggestion ! . url , 'https://assistant.google.com/' )
332332 t . is ( res . linkOutSuggestion ! . name , 'Suggestion Link' )
@@ -342,7 +342,7 @@ test.serial('verifies parsing a table', t => {
342342 return conversation
343343 } )
344344
345- return action ! . startConversation ( '' )
345+ return action ! . start ( '' )
346346 . then ( ( res : AssistResponse ) => {
347347 t . deepEqual ( res . table ! . headers , [ 'header 1' , 'header 2' , 'header 3' ] )
348348 t . deepEqual ( res . table ! . rows [ 0 ] . cells , [ 'row 1 item 1' , 'row 1 item 2' , 'row 1 item 3' ] )
0 commit comments