File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -238,12 +238,12 @@ describe("TNS require", function () {
238238
239239 it ( "should handle JSON file errors" , function ( ) {
240240 require ( './RequireJsonCorruptFile' ) ;
241- expect ( TNSGetOutput ( ) ) . toMatch ( / J S O N P a r s e e r r o r : U n t e r m i n a t e d s t r i n g $ | U n e x p e c t e d t o k e n / )
241+ expect ( TNSGetOutput ( ) ) . toMatch ( / J S O N P a r s e e r r o r : U n t e r m i n a t e d s t r i n g $ | U n e x p e c t e d t o k e n | B a d c o n t r o l c h a r a c t e r / ) ;
242242 } ) ;
243243
244244 it ( "shouldn't load invalid JSON file" , function ( ) {
245245 require ( "./RequireJsonCorruptFile1" ) ;
246- expect ( TNSGetOutput ( ) ) . toMatch ( / U n e x p e c t e d t o k e n s i n J S O N a t p o s i t i o n 1 $ | J S O N P a r s e e r r o r : U n a b l e t o p a r s e J S O N s t r i n g $ | N o i d e n t i f i e r s a l l o w e d d i r e c t l y a f t e r n u m e r i c l i t e r a l $ / )
246+ expect ( TNSGetOutput ( ) ) . toMatch ( / U n e x p e c t e d t o k e n s i n J S O N a t p o s i t i o n 1 $ | J S O N P a r s e e r r o r : U n a b l e t o p a r s e J S O N s t r i n g $ | N o i d e n t i f i e r s a l l o w e d d i r e c t l y a f t e r n u m e r i c l i t e r a l $ | U n e x p e c t e d n o n - w h i t e s p a c e c h a r a c t e r / ) ;
247247 } ) ;
248248
249249 it ( "when using global in a module global should be defined" , function ( ) {
You can’t perform that action at this time.
0 commit comments