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 49
49
50
50
- name : Run test
51
51
run : |
52
- cd test && node setup-test.js
52
+ node setup-test.js
Original file line number Diff line number Diff line change 12
12
],
13
13
"scripts" : {
14
14
"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" ,
16
16
"lint" : " standard"
17
17
},
18
18
"author" :
" RafaelGSS <[email protected] >" ,
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' )
2
2
const assert = require ( 'assert' )
3
3
4
4
// When old enough an error is thrown
@@ -11,7 +11,7 @@ if (isNodeEOL(process.version)) {
11
11
function runCompatibilityTest ( ) {
12
12
const childProcess = require ( 'child_process' )
13
13
const path = require ( 'path' )
14
- const isNodeVulnerablePath = path . resolve ( '.. /src/index.js' )
14
+ const isNodeVulnerablePath = path . resolve ( './src/index.js' )
15
15
const child = childProcess . spawnSync ( process . execPath , [ isNodeVulnerablePath ] )
16
16
assert . strictEqual ( child . status , 1 )
17
17
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 1
1
const assert = require ( 'assert' )
2
- const { isNodeVulnerable } = require ( '.. /src/index' )
2
+ const { isNodeVulnerable } = require ( './src/index' )
3
3
4
4
async function t ( ) {
5
5
// of course, this test is fragile
You can’t perform that action at this time.
0 commit comments