@@ -57,13 +57,13 @@ test('tree', async function (t) {
57
57
tree : true
58
58
} )
59
59
60
- const doc = String ( await fs . readFile ( new URL ( 'doc.json' , cwd ) ) )
60
+ const document = String ( await fs . readFile ( new URL ( 'doc.json' , cwd ) ) )
61
61
62
62
await fs . unlink ( new URL ( 'doc.json' , cwd ) )
63
63
64
64
assert . equal ( code , 0 )
65
65
assert . equal ( stderr ( ) , 'doc > doc.json: written\n' )
66
- assert . equal ( doc , '{\n "type": "text",\n "value": "two"\n}\n' )
66
+ assert . equal ( document , '{\n "type": "text",\n "value": "two"\n}\n' )
67
67
}
68
68
)
69
69
@@ -88,13 +88,13 @@ test('tree', async function (t) {
88
88
treeIn : true
89
89
} )
90
90
91
- const doc = String ( await fs . readFile ( new URL ( 'doc.foo' , cwd ) ) )
91
+ const document = String ( await fs . readFile ( new URL ( 'doc.foo' , cwd ) ) )
92
92
93
93
await fs . unlink ( new URL ( 'doc.foo' , cwd ) )
94
94
95
95
assert . equal ( code , 0 )
96
96
assert . equal ( stderr ( ) , 'doc > doc.foo: written\n' )
97
- assert . equal ( doc , 'two' )
97
+ assert . equal ( document , 'two' )
98
98
} )
99
99
100
100
await t . test ( 'should write JSON when `treeOut` is given' , async function ( ) {
@@ -118,13 +118,13 @@ test('tree', async function (t) {
118
118
treeOut : true
119
119
} )
120
120
121
- const doc = String ( await fs . readFile ( new URL ( 'one.json' , cwd ) ) )
121
+ const document = String ( await fs . readFile ( new URL ( 'one.json' , cwd ) ) )
122
122
123
123
await fs . unlink ( new URL ( 'one.json' , cwd ) )
124
124
125
125
assert . equal ( code , 0 )
126
126
assert . equal ( stderr ( ) , 'one.txt > one.json: written\n' )
127
- assert . equal ( doc , '{\n "type": "text",\n "value": "two"\n}\n' )
127
+ assert . equal ( document , '{\n "type": "text",\n "value": "two"\n}\n' )
128
128
} )
129
129
130
130
await t . test ( 'should support `treeOut` for stdin' , async function ( ) {
0 commit comments