File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -17,18 +17,6 @@ export default {
17
17
expect ( P . basename ( path1 ) . startsWith ( 'tmp-' ) ) . toBeTruthy ( )
18
18
expect ( P . basename ( path2 ) . startsWith ( 'tmp-' ) ) . toBeTruthy ( )
19
19
} ,
20
- reset : async ( ) => {
21
- const cwd = process . cwd ( )
22
-
23
- const reset = await self ( )
24
-
25
- const path = process . cwd ( )
26
- expect ( P . basename ( path ) . startsWith ( 'tmp-' ) ) . toBeTruthy ( )
27
- expect ( P . dirname ( path ) ) . toEqual ( cwd )
28
- await reset ( )
29
- expect ( process . cwd ( ) ) . toEqual ( cwd )
30
- expect ( await exists ( path ) ) . toBeFalsy ( )
31
- } ,
32
20
dir : async ( ) => {
33
21
const cwd = process . cwd ( )
34
22
await ensureDir ( 'foo' )
@@ -84,6 +72,18 @@ export default {
84
72
expect ( P . basename ( path ) . startsWith ( 'foo-' ) ) . toBeTruthy ( )
85
73
expect ( P . dirname ( path ) ) . toEqual ( process . cwd ( ) )
86
74
} ,
75
+ reset : async ( ) => {
76
+ const cwd = process . cwd ( )
77
+
78
+ const reset = await self ( )
79
+
80
+ const path = process . cwd ( )
81
+ expect ( P . basename ( path ) . startsWith ( 'tmp-' ) ) . toBeTruthy ( )
82
+ expect ( P . dirname ( path ) ) . toEqual ( cwd )
83
+ await reset ( )
84
+ expect ( process . cwd ( ) ) . toEqual ( cwd )
85
+ expect ( await exists ( path ) ) . toBeFalsy ( )
86
+ } ,
87
87
simple : async ( ) => {
88
88
const cwd = process . cwd ( )
89
89
let path
You can’t perform that action at this time.
0 commit comments