@@ -3,7 +3,7 @@ import path from 'path'
3
3
import { fileURLToPath , URL } from 'url'
4
4
import test from 'tape'
5
5
import buffer from 'is-buffer'
6
- import { toVFile } from './index.js'
6
+ import { toVFile , read , readSync , write , writeSync } from './index.js'
7
7
8
8
var join = path . join
9
9
@@ -69,6 +69,8 @@ test('toVFile()', function (t) {
69
69
} )
70
70
71
71
test ( 'toVFile.readSync' , function ( t ) {
72
+ t . equal ( toVFile . readSync , readSync , 'should export as an identifier' )
73
+
72
74
t . test ( 'should fail without path' , function ( st ) {
73
75
st . throws ( function ( ) {
74
76
// @ts -ignore runtime.
@@ -137,6 +139,8 @@ test('toVFile.readSync', function (t) {
137
139
} )
138
140
139
141
test ( 'toVFile.read' , function ( t ) {
142
+ t . equal ( toVFile . read , read , 'should export as an identifier' )
143
+
140
144
t . test ( 'should pass an error without path' , function ( st ) {
141
145
st . plan ( 1 )
142
146
@@ -229,6 +233,8 @@ test('toVFile.writeSync', function (t) {
229
233
var filePath = 'fixture.txt'
230
234
var invalidFilePath = join ( 'invalid' , 'path' , 'to' , 'fixture.txt' )
231
235
236
+ t . equal ( toVFile . writeSync , writeSync , 'should export as an identifier' )
237
+
232
238
t . test ( 'should fail without path' , function ( st ) {
233
239
st . throws ( function ( ) {
234
240
// @ts -ignore runtime.
@@ -283,6 +289,8 @@ test('toVFile.write', function (t) {
283
289
var filePath = 'fixture.txt'
284
290
var invalidFilePath = join ( 'invalid' , 'path' , 'to' , 'fixture.txt' )
285
291
292
+ t . equal ( toVFile . write , write , 'should export as an identifier' )
293
+
286
294
t . test ( 'should pass an error without path' , function ( st ) {
287
295
st . plan ( 1 )
288
296
0 commit comments