File tree 1 file changed +11
-4
lines changed
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ import process from 'node:process'
4
4
import test from 'node:test'
5
5
import strip from 'strip-ansi'
6
6
import { VFile } from 'vfile'
7
- import reporterDefault , { reporter } from './index.js'
7
+ import { reporter } from './index.js'
8
+ import * as mod from './index.js'
8
9
9
10
// `log-symbols` without chalk, ignored for Windows:
10
11
/* c8 ignore next 4 */
@@ -51,10 +52,16 @@ try {
51
52
}
52
53
/* eslint-enable no-undef */
53
54
54
- test ( 'vfile-reporter' , ( ) => {
55
+ test ( 'reporter' , ( ) => {
56
+ assert . deepEqual (
57
+ Object . keys ( mod ) . sort ( ) ,
58
+ [ 'default' , 'reporter' ] ,
59
+ 'should expose the public api'
60
+ )
61
+
55
62
assert . equal (
56
- reporter ,
57
- reporterDefault ,
63
+ mod . reporter ,
64
+ mod . default ,
58
65
'should expose `reporter` as a named and a default export'
59
66
)
60
67
You can’t perform that action at this time.
0 commit comments