Skip to content

Commit 99624f1

Browse files
committedJul 15, 2021
Fix tests
1 parent f60403c commit 99624f1

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed
 

‎.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
matrix:
1919
node:
20-
- lts/dubnium
20+
- lts/erbium
2121
- node
2222
windows:
2323
name: ${{matrix.node}}

‎lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @typedef {import('unified-engine').Options} EngineOptions
3-
* @typedef {import('unified-engine/lib/index.js').Context} EngineContext
3+
* @typedef {import('unified-engine').Context} EngineContext
44
* @typedef {import('unified-engine').Callback} EngineCallback
55
* @typedef {import('./options.js').Options} Options
66
*/

‎package.json

-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
"bail": "^2.0.0",
4848
"c8": "^7.0.0",
4949
"execa": "^5.0.0",
50-
"figures": "^4.0.0",
5150
"prettier": "^2.0.0",
5251
"remark": "^13.0.0",
5352
"remark-cli": "^9.0.0",

‎test/index.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ import execa from 'execa'
44
import {bail} from 'bail'
55
import test from 'tape'
66
import strip from 'strip-ansi'
7-
import figures from 'figures'
87
import touch from 'touch'
98

9+
const cross = process.platform === 'win32' ? '×' : '✖'
10+
1011
const fixtures = path.join('test', 'fixtures')
1112
const cwd = path.join(fixtures, 'example')
1213
const bin = path.join(cwd, 'cli.js')
@@ -19,7 +20,7 @@ test('unified-args', (t) => {
1920
'missing.txt',
2021
' 1:1 error No such file or directory',
2122
'',
22-
figures.cross + ' 1 error'
23+
cross + ' 1 error'
2324
].join('\n')
2425

2526
t.plan(1)
@@ -595,7 +596,7 @@ test('unified-args', (t) => {
595596
'',
596597
'two.txt: no issues found',
597598
'',
598-
figures.cross + ' 1 error'
599+
cross + ' 1 error'
599600
].join('\n')
600601

601602
t.plan(1)

0 commit comments

Comments
 (0)
Please sign in to comment.