@@ -214,7 +214,7 @@ describe("TNS require", function () {
214214 expect ( result . title ) . toBe ( expected ) ;
215215 } ) ;
216216
217- it ( "require directory with index.json and no package.json" , function ( ) {
217+ xit ( "require directory with index.json and no package.json" , function ( ) {
218218 var result = require ( "./DirectoryWithIndexJson" ) ;
219219 var expected = 'string from index.json' ;
220220
@@ -243,7 +243,7 @@ describe("TNS require", function () {
243243
244244 it ( "shouldn't load invalid JSON file" , function ( ) {
245245 require ( "./RequireJsonCorruptFile1" ) ;
246- expect ( TNSGetOutput ( ) ) . toMatch ( / 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 $ / )
247247 } ) ;
248248
249249 it ( "when using global in a module global should be defined" , function ( ) {
@@ -294,6 +294,7 @@ describe("TNS require", function () {
294294 require ( "./FileWithDots" ) ;
295295 expect ( TNSGetOutput ( ) ) . toBe ( 'file.name' ) ;
296296 } ) ;
297+
297298 it ( 'should load path from package.json as directory' , function ( ) {
298299 require ( "./PackageJsonMainPointsToDir" ) ;
299300 expect ( TNSGetOutput ( ) ) . toBe ( ' from subdirectory/index.js' ) ;
0 commit comments