Skip to content

Commit 55806c6

Browse files
committed
fixed build
1 parent e636228 commit 55806c6

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

packages/prettyhtml/test/cli.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const spy = require('../test-helpers/util')
66
const args = require('../cli/args')
77
const engine = require('unified-engine')
88
const unified = require('unified')
9+
const prepareVfile = require('../test-helpers/prepareVfile')
910

1011
test.cb('Should format with default settings', t => {
1112
const stream = new Readable()
@@ -37,7 +38,7 @@ test.cb('Should format with default settings', t => {
3738
(err, code, result) => {
3839
t.falsy(err)
3940
t.deepEqual([stderr(), code], ['<stdin>: no issues found\n', 0])
40-
t.snapshot(result.files[0])
41+
t.snapshot(prepareVfile(result.files[0]))
4142
t.end()
4243
}
4344
)

packages/prettyhtml/test/snapshots/cli.js.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Generated by [AVA](https://ava.li).
1414
<button [style.color]="isSpecial ? 'red' : 'green'"></button>␊
1515
</form>␊
1616
`,
17-
cwd: 'D:\\Repositories\\prettyhtml\\packages\\prettyhtml',
17+
cwd: 'skipped in tests',
1818
data: {
1919
unifiedEngineGiven: true,
2020
unifiedEngineStreamIn: true,
-17 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)