@@ -47,7 +47,7 @@ describe('+ readFile()', function () {
47
47
} )
48
48
} )
49
49
50
- describe ( '> when invalid JSON and passParsingErrors set to false' , function ( ) {
50
+ describe ( '> when invalid JSON and throws set to false' , function ( ) {
51
51
it ( 'should return null and no error' , function ( done ) {
52
52
var fn = 'somefile4-invalid.json'
53
53
var file = path . join ( TEST_DIR , fn )
@@ -64,7 +64,7 @@ describe('+ readFile()', function () {
64
64
bothDone = true
65
65
} )
66
66
67
- jf . readFile ( file , { passParsingErrors : false } , function ( err , obj2 ) {
67
+ jf . readFile ( file , { throws : false } , function ( err , obj2 ) {
68
68
assert . ifError ( err )
69
69
assert . strictEqual ( obj2 , null )
70
70
if ( bothDone ) {
@@ -103,7 +103,7 @@ describe('+ readFile()', function () {
103
103
} )
104
104
} )
105
105
106
- describe ( '> when invalid JSON and passParsingErrors set to true' , function ( ) {
106
+ describe ( '> when invalid JSON and throws set to true' , function ( ) {
107
107
it ( 'should return an error' , function ( done ) {
108
108
var fn = 'somefile4-invalid.json'
109
109
var file = path . join ( TEST_DIR , fn )
@@ -120,7 +120,7 @@ describe('+ readFile()', function () {
120
120
bothDone = true
121
121
} )
122
122
123
- jf . readFile ( file , { passParsingErrors : true } , function ( err , obj2 ) {
123
+ jf . readFile ( file , { throws : true } , function ( err , obj2 ) {
124
124
assert ( err instanceof Error )
125
125
assert ( err . message . match ( file ) )
126
126
if ( bothDone ) {
0 commit comments