Skip to content

Commit 06f1968

Browse files
committed
chore: move test files to original location
1 parent f24e605 commit 06f1968

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ jobs:
4949

5050
- name: Run test
5151
run: |
52-
cd test && node setup-test.js
52+
node setup-test.js

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
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 <[email protected]>",

test/setup-test.js renamed to setup-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const isNodeEOL = require('../src/is-node-eol')
1+
const isNodeEOL = require('./src/is-node-eol')
22
const assert = require('assert')
33

44
// When old enough an error is thrown
@@ -11,7 +11,7 @@ if (isNodeEOL(process.version)) {
1111
function 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)

test/test.js renamed to test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const assert = require('assert')
2-
const { isNodeVulnerable } = require('../src/index')
2+
const { isNodeVulnerable } = require('./src/index')
33

44
async function t () {
55
// of course, this test is fragile

0 commit comments

Comments
 (0)