Skip to content

Commit

Permalink
try not skipping json import test with node 18
Browse files Browse the repository at this point in the history
  • Loading branch information
bumblehead committed Apr 25, 2024
1 parent afb1b4f commit efcf307
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/tests-node/esmock.node.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -559,8 +559,8 @@ test('should mock imported json', async () => {
}
})

if (/^(18)$/.test(process.versions.node.split('.')[0]))
return assert.ok(true)
// if (/^(18)$/.test(process.versions.node.split('.')[0]))
// return assert.ok(true)

assert.strictEqual(
Object.keys(importsJSON.JSONobj).sort().join(), 'example,test-example')
Expand All @@ -578,8 +578,8 @@ test('should mock imported json (strict)', async () => {
}
})

if (/^(18)$/.test(process.versions.node.split('.')[0]))
return assert.ok(true)
// if (/^(18)$/.test(process.versions.node.split('.')[0]))
// return assert.ok(true)

assert.strictEqual(
Object.keys(importsJSON.JSONobj).sort().join(), 'test-example')
Expand Down

0 comments on commit efcf307

Please sign in to comment.