@@ -11,28 +11,8 @@ describe('unit-d:interfaces/FileSystem', () => {
1111 expectTypeOf < TestSubject > ( ) . toMatchTypeOf < mlly . FileSystem > ( )
1212 } )
1313
14- describe ( 'readFile' , ( ) => {
15- type Subject = TestSubject [ 'readFile' ]
16-
17- it ( 'should match [this: void]' , ( ) => {
18- expectTypeOf < Subject > ( ) . thisParameter . toEqualTypeOf < void > ( )
19- } )
20-
21- describe ( 'parameters' , ( ) => {
22- it ( 'should be callable with [mlly.ModuleId]' , ( ) => {
23- expectTypeOf < Subject > ( ) . parameters . toEqualTypeOf < [ mlly . ModuleId ] > ( )
24- } )
25- } )
26-
27- describe ( 'returns' , ( ) => {
28- it ( 'should return Buffer | string' , ( ) => {
29- expectTypeOf < Subject > ( ) . returns . toEqualTypeOf < Buffer | string > ( )
30- } )
31- } )
32- } )
33-
34- describe ( 'readdir' , ( ) => {
35- type Subject = TestSubject [ 'readdir' ]
14+ describe ( 'readdirSync' , ( ) => {
15+ type Subject = TestSubject [ 'readdirSync' ]
3616
3717 it ( 'should match [this: void]' , ( ) => {
3818 expectTypeOf < Subject > ( ) . thisParameter . toEqualTypeOf < void > ( )
@@ -50,44 +30,4 @@ describe('unit-d:interfaces/FileSystem', () => {
5030 } )
5131 } )
5232 } )
53-
54- describe ( 'realpath' , ( ) => {
55- type Subject = TestSubject [ 'realpath' ]
56-
57- it ( 'should match [this: void]' , ( ) => {
58- expectTypeOf < Subject > ( ) . thisParameter . toEqualTypeOf < void > ( )
59- } )
60-
61- describe ( 'parameters' , ( ) => {
62- it ( 'should be callable with [mlly.ModuleId]' , ( ) => {
63- expectTypeOf < Subject > ( ) . parameters . toEqualTypeOf < [ mlly . ModuleId ] > ( )
64- } )
65- } )
66-
67- describe ( 'returns' , ( ) => {
68- it ( 'should return string' , ( ) => {
69- expectTypeOf < Subject > ( ) . returns . toEqualTypeOf < string > ( )
70- } )
71- } )
72- } )
73-
74- describe ( 'stat' , ( ) => {
75- type Subject = TestSubject [ 'stat' ]
76-
77- it ( 'should match [this: void]' , ( ) => {
78- expectTypeOf < Subject > ( ) . thisParameter . toEqualTypeOf < void > ( )
79- } )
80-
81- describe ( 'parameters' , ( ) => {
82- it ( 'should be callable with [mlly.ModuleId]' , ( ) => {
83- expectTypeOf < Subject > ( ) . parameters . toEqualTypeOf < [ mlly . ModuleId ] > ( )
84- } )
85- } )
86-
87- describe ( 'returns' , ( ) => {
88- it ( 'should return mlly.Stats' , ( ) => {
89- expectTypeOf < Subject > ( ) . returns . toEqualTypeOf < mlly . Stats > ( )
90- } )
91- } )
92- } )
9333} )
0 commit comments