Skip to content

Commit

Permalink
Update test for node 17
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Dec 3, 2021
1 parent 734e6b7 commit 803d894
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/next/build/swc/index.js
@@ -1,6 +1,6 @@
import { platform, arch } from 'os'
import { platformArchTriples } from '@napi-rs/triples'
import Log from '../output/log'
import * as Log from '../output/log'

const ArchName = arch()
const PlatformName = platform()
Expand Down
10 changes: 7 additions & 3 deletions test/integration/production/test/security.js
Expand Up @@ -45,9 +45,13 @@ module.exports = (context) => {
request.end()
})
}

expect(await invalidRequest()).toBe(400)
expect(await invalidRequest()).toBe(400)
try {
expect(await invalidRequest()).toBe(400)
expect(await invalidRequest()).toBe(400)
} catch (err) {
// eslint-disable-next-line
expect(err.code).toBe('ECONNREFUSED')
}
})

it('should only access files inside .next directory', async () => {
Expand Down

0 comments on commit 803d894

Please sign in to comment.