File tree Expand file tree Collapse file tree
packages/google-cloud-translate/test Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ describe('Translate', function() {
8181 it ( 'should throw if an API key is not provided' , function ( ) {
8282 assert . throws ( function ( ) {
8383 new Translate ( { } ) ;
84- } , ' An API key is required to use the Translate API.' ) ;
84+ } , / A n A P I k e y i s r e q u i r e d t o u s e t h e T r a n s l a t e A P I \. / ) ;
8585 } ) ;
8686
8787 it ( 'should localize the options' , function ( ) {
@@ -266,7 +266,7 @@ describe('Translate', function() {
266266 it ( 'should throw if `to` is not provided' , function ( ) {
267267 assert . throws ( function ( ) {
268268 translate . translate ( INPUT , { from : SOURCE_LANG_CODE } , util . noop ) ;
269- } , ' A target language is required to perform a translation.' ) ;
269+ } , / A t a r g e t l a n g u a g e i s r e q u i r e d t o p e r f o r m a t r a n s l a t i o n \. / ) ;
270270 } ) ;
271271
272272 it ( 'should make the correct API request' , function ( done ) {
You can’t perform that action at this time.
0 commit comments