File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ test.beforeEach(t => {
16
16
} ) ;
17
17
18
18
test . afterEach . always ( t => {
19
+ process . chdir ( CWD ) ;
19
20
shell . rm ( '-rf' , t . context . tmp ) ;
20
21
} ) ;
21
22
@@ -53,7 +54,6 @@ test('destination already exists inside directory', t => {
53
54
const result = shell . ln ( '-s' , 'file1' , './' ) ;
54
55
t . truthy ( shell . error ( ) ) ;
55
56
t . is ( result . code , 1 ) ;
56
- shell . cd ( '..' ) ;
57
57
} ) ;
58
58
59
59
test ( 'non-existent source' , t => {
@@ -142,7 +142,6 @@ test('To current directory', t => {
142
142
t . truthy ( fs . existsSync ( 'dest/testfile.txt' ) ) ;
143
143
t . truthy ( fs . existsSync ( 'dir1/insideDir.txt' ) ) ;
144
144
t . falsy ( fs . existsSync ( 'dest/insideDir.txt' ) ) ;
145
- shell . cd ( '..' ) ;
146
145
} ) ;
147
146
148
147
test ( 'Inside existing directory' , t => {
@@ -156,7 +155,6 @@ test('Inside existing directory', t => {
156
155
fs . readFileSync ( 'external/node_script.js' ) . toString ( ) ,
157
156
fs . readFileSync ( 'node_script.js' ) . toString ( )
158
157
) ;
159
- shell . cd ( '..' ) ;
160
158
} ) ;
161
159
162
160
test ( '-f option' , t => {
You can’t perform that action at this time.
0 commit comments