@@ -15,7 +15,7 @@ describe(`Commands`, () => {
15
15
const { path : updateFolderN } = JSON . parse ( stdout ) ;
16
16
17
17
const updateFolder = npath . toPortablePath ( updateFolderN ) ;
18
- const updateFile = ppath . join ( updateFolder , `index.js` as Filename ) ;
18
+ const updateFile = ppath . join ( updateFolder , `index.js` ) ;
19
19
20
20
const fileSource = await xfs . readFilePromise ( updateFile , `utf8` ) ;
21
21
const fileUser = fileSource . replace ( `require(dep)` , `42` ) ;
@@ -38,7 +38,7 @@ describe(`Commands`, () => {
38
38
const { path : updateFolderN } = JSON . parse ( stdout ) ;
39
39
40
40
const updateFolder = npath . toPortablePath ( updateFolderN ) ;
41
- const updateFile = ppath . join ( updateFolder , `index.js` as Filename ) ;
41
+ const updateFile = ppath . join ( updateFolder , `index.js` ) ;
42
42
43
43
const fileSource = await xfs . readFilePromise ( updateFile , `utf8` ) ;
44
44
const fileUser = fileSource . replace ( `require(dep)` , `42` ) ;
@@ -68,7 +68,7 @@ describe(`Commands`, () => {
68
68
const { path : updateFolderN } = JSON . parse ( stdout ) ;
69
69
70
70
const updateFolder = npath . toPortablePath ( updateFolderN ) ;
71
- const updateFile = ppath . join ( updateFolder , `index.js` as Filename ) ;
71
+ const updateFile = ppath . join ( updateFolder , `index.js` ) ;
72
72
73
73
const fileSource = await xfs . readFilePromise ( updateFile , `utf8` ) ;
74
74
const fileUser = fileSource . replace ( `require(dep)` , `42` ) ;
@@ -99,7 +99,7 @@ describe(`Commands`, () => {
99
99
const { path : updateFolderN } = JSON . parse ( stdout ) ;
100
100
101
101
const updateFolder = npath . toPortablePath ( updateFolderN ) ;
102
- const updateFile = ppath . join ( updateFolder , `index.js` as Filename ) ;
102
+ const updateFile = ppath . join ( updateFolder , `index.js` ) ;
103
103
104
104
const fileSource = await xfs . readFilePromise ( updateFile , `utf8` ) ;
105
105
const fileUser = fileSource . replace ( `require(dep)` , `42` ) ;
@@ -133,7 +133,7 @@ describe(`Commands`, () => {
133
133
const { path : updateFolderN } = JSON . parse ( stdout ) ;
134
134
135
135
const updateFolder = npath . toPortablePath ( updateFolderN ) ;
136
- const updateFile = ppath . join ( updateFolder , `new.js` as Filename ) ;
136
+ const updateFile = ppath . join ( updateFolder , `new.js` ) ;
137
137
138
138
const fileUser = `module.exports = 42;\n` ;
139
139
await xfs . writeFilePromise ( updateFile , fileUser ) ;
@@ -152,7 +152,7 @@ describe(`Commands`, () => {
152
152
const { path : updateFolderN } = JSON . parse ( stdout ) ;
153
153
154
154
const updateFolder = npath . toPortablePath ( updateFolderN ) ;
155
- const updateFile = ppath . join ( updateFolder , `new.js` as Filename ) ;
155
+ const updateFile = ppath . join ( updateFolder , `new.js` ) ;
156
156
157
157
const fileUser = `module.exports = 21;\n` ;
158
158
await xfs . writeFilePromise ( updateFile , fileUser ) ;
@@ -181,7 +181,7 @@ describe(`Commands`, () => {
181
181
const { path : updateFolderN } = JSON . parse ( stdout ) ;
182
182
183
183
const updateFolder = npath . toPortablePath ( updateFolderN ) ;
184
- const updateFile = ppath . join ( updateFolder , `index.js` as Filename ) ;
184
+ const updateFile = ppath . join ( updateFolder , `index.js` ) ;
185
185
186
186
const fileSource = await xfs . readFilePromise ( updateFile , `utf8` ) ;
187
187
const fileUser = fileSource . replace ( `require(dep)` , `42` ) ;
0 commit comments