File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ 'use strict'
2+
3+ module . exports = prepareVfile
4+
5+ function prepareVfile ( vfile ) {
6+ vfile . cwd = 'skipped in tests'
7+ return vfile
8+ }
Original file line number Diff line number Diff line change 11const test = require ( 'ava' )
22const prettyhtml = require ( '..' )
3+ const prepareVfile = require ( '../test-helpers/prepareVfile' )
34
45test ( 'Should format with default settings' , t => {
56 const result = prettyhtml (
67 `<form #heroForm (ngSubmit)="onSubmit(heroForm)"><input type="text" [(onChange)]="dede" name="test" /><button [style.color]="isSpecial ? 'red' : 'green'"></button></form>`
78 )
8- t . snapshot ( result )
9+ t . snapshot ( prepareVfile ( result ) )
910} )
Original file line number Diff line number Diff 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 history: [],
2020 messages: [],
You can’t perform that action at this time.
0 commit comments