Skip to content

Commit 120a965

Browse files
committed
Fix tests on node v12
1 parent 9558112 commit 120a965

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

.github/workflows/node.js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ jobs:
2525
node-version: ${{ matrix.node-version }}
2626
cache: 'npm'
2727
- run: npm install
28-
- run: FORCE_COLOR=3 npm run ci:test # FORCE_COLOR=3 enables full 16,777,216 colour support
28+
- run: FORCE_COLOR=3 npm run test:ci # FORCE_COLOR=3 enables full 16,777,216 colour support

dist/index.cjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
var require$$0 = require('os');
44
var require$$1 = require('tty');
5-
var os$1 = require('node:os');
65

76
/**
87
* Takes any input and guarantees an array back.
@@ -2173,7 +2172,7 @@ class Section {
21732172
}
21742173

21752174
toString () {
2176-
return this.lines.join(os$1.EOL)
2175+
return this.lines.join(require$$0.EOL)
21772176
}
21782177

21792178
header (text) {

lib/section.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import arrayify from 'array-back'
22
import chalk from './chalk-format.js'
3-
import os from 'node:os'
3+
import os from 'os'
44

55
class Section {
66
constructor () {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
},
2727
"scripts": {
2828
"docs": "jsdoc2md --no-gfm index.js lib/**/*.js > doc/api.md; echo",
29-
"test": "npm run dist && npm run ci:test",
30-
"ci:test": "test-runner test/*.js test/*.cjs",
29+
"test": "npm run dist && npm run test:ci",
30+
"test:ci": "test-runner test/*.js test/*.cjs",
3131
"examples": "for FILE in example/*.js; do printf \"\n\n======== $FILE ========\n\n\"; node $FILE; done",
3232
"dist": "rollup -c"
3333
},

0 commit comments

Comments
 (0)