Skip to content

Commit 595e0b3

Browse files
committed
chore: update config files
1 parent ac51d5f commit 595e0b3

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/index.spec.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,6 @@ export default {
1717
expect(P.basename(path1).startsWith('tmp-')).toBeTruthy()
1818
expect(P.basename(path2).startsWith('tmp-')).toBeTruthy()
1919
},
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-
},
3220
dir: async () => {
3321
const cwd = process.cwd()
3422
await ensureDir('foo')
@@ -84,6 +72,18 @@ export default {
8472
expect(P.basename(path).startsWith('foo-')).toBeTruthy()
8573
expect(P.dirname(path)).toEqual(process.cwd())
8674
},
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+
},
8787
simple: async () => {
8888
const cwd = process.cwd()
8989
let path

0 commit comments

Comments
 (0)