File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 4949
5050 - name : Run test
5151 run : |
52- cd test && node setup-test.js
52+ node setup-test.js
Original file line number Diff line number Diff line change 1212 ],
1313 "scripts" : {
1414 "build" : " ncc build action.js -o dist" ,
15- "test" : " npm run lint && cd test && node setup-test.js" ,
15+ "test" : " npm run lint && node setup-test.js" ,
1616 "lint" : " standard"
1717 },
1818 "author" : " RafaelGSS <rafael.nunu@hotmail.com>" ,
Original file line number Diff line number Diff line change 1- const isNodeEOL = require ( '.. /src/is-node-eol' )
1+ const isNodeEOL = require ( './src/is-node-eol' )
22const assert = require ( 'assert' )
33
44// When old enough an error is thrown
@@ -11,7 +11,7 @@ if (isNodeEOL(process.version)) {
1111function runCompatibilityTest ( ) {
1212 const childProcess = require ( 'child_process' )
1313 const path = require ( 'path' )
14- const isNodeVulnerablePath = path . resolve ( '.. /src/index.js' )
14+ const isNodeVulnerablePath = path . resolve ( './src/index.js' )
1515 const child = childProcess . spawnSync ( process . execPath , [ isNodeVulnerablePath ] )
1616 assert . strictEqual ( child . status , 1 )
1717 assert ( child . stdout . toString ( ) . indexOf ( 'is end-of-life. There are high chances of being vulnerable' ) !== - 1 )
Original file line number Diff line number Diff line change 11const assert = require ( 'assert' )
2- const { isNodeVulnerable } = require ( '.. /src/index' )
2+ const { isNodeVulnerable } = require ( './src/index' )
33
44async function t ( ) {
55 // of course, this test is fragile
You can’t perform that action at this time.
0 commit comments