@@ -34,7 +34,7 @@ const fakeCTAJSON: PersistedOptions = {
3434
3535beforeEach ( ( ) => {
3636 const fakeFiles = {
37- './ package.json' : JSON . stringify ( {
37+ 'package.json' : JSON . stringify ( {
3838 name : 'test' ,
3939 version : '1.0.0' ,
4040 dependencies : { } ,
@@ -71,7 +71,7 @@ beforeEach(() => {
7171 } ,
7272 } ,
7373 dependsOn : [ ] ,
74- getFiles : ( ) => Promise . resolve ( [ './ jack.txt' ] ) ,
74+ getFiles : ( ) => Promise . resolve ( [ 'jack.txt' ] ) ,
7575 getFileContents : ( ) => Promise . resolve ( 'foo' ) ,
7676 getDeletedFiles : ( ) => Promise . resolve ( [ ] ) ,
7777 } ,
@@ -152,8 +152,8 @@ describe('writeFiles', () => {
152152 '/foo' ,
153153 {
154154 files : {
155- './ bar.txt' : 'baz' ,
156- './ blarg.txt' : 'blarg' ,
155+ 'bar.txt' : 'baz' ,
156+ 'blarg.txt' : 'blarg' ,
157157 } ,
158158 deletedFiles : [ ] ,
159159 } ,
@@ -177,18 +177,18 @@ describe('writeFiles', () => {
177177 '/foo' ,
178178 {
179179 files : {
180- './ bar.txt' : 'baz' ,
181- './ blarg.txt' : 'blarg' ,
180+ 'bar.txt' : 'baz' ,
181+ 'blarg.txt' : 'blarg' ,
182182 } ,
183183 deletedFiles : [ ] ,
184184 } ,
185185 true ,
186186 )
187187 environment . finishRun ( )
188188 expect ( output . files ) . toEqual ( {
189- './ blooop.txt' : 'blooop' ,
190- './ bar.txt' : 'baz' ,
191- './ blarg.txt' : 'blarg' ,
189+ 'blooop.txt' : 'blooop' ,
190+ 'bar.txt' : 'baz' ,
191+ 'blarg.txt' : 'blarg' ,
192192 } )
193193 } )
194194
@@ -203,9 +203,9 @@ describe('writeFiles', () => {
203203 '/foo' ,
204204 {
205205 files : {
206- './ unchanged.jpg' : 'base64::foobaz' ,
207- './ changing.jpg' : 'base64::aGVsbG8=' ,
208- './ new.jpg' : 'base64::aGVsbG8=' ,
206+ 'unchanged.jpg' : 'base64::foobaz' ,
207+ 'changing.jpg' : 'base64::aGVsbG8=' ,
208+ 'new.jpg' : 'base64::aGVsbG8=' ,
209209 } ,
210210 deletedFiles : [ ] ,
211211 } ,
@@ -214,9 +214,9 @@ describe('writeFiles', () => {
214214 environment . finishRun ( )
215215 // It's ok for unchanged.jpg not to be written, because it matches the existing file
216216 expect ( output . files ) . toEqual ( {
217- './ unchanged.jpg' : 'base64::foobaz' ,
218- './ changing.jpg' : 'base64::aGVsbG8=' ,
219- './ new.jpg' : 'base64::aGVsbG8=' ,
217+ 'unchanged.jpg' : 'base64::foobaz' ,
218+ 'changing.jpg' : 'base64::aGVsbG8=' ,
219+ 'new.jpg' : 'base64::aGVsbG8=' ,
220220 } )
221221 } )
222222
@@ -245,7 +245,7 @@ describe('writeFiles', () => {
245245 '/foo' ,
246246 {
247247 files : {
248- './ package.json' : JSON . stringify (
248+ 'package.json' : JSON . stringify (
249249 {
250250 scripts : {
251251 test : 'echo "test"' ,
@@ -264,7 +264,7 @@ describe('writeFiles', () => {
264264 )
265265 environment . finishRun ( )
266266 expect ( output . files ) . toEqual ( {
267- './ package.json' : JSON . stringify (
267+ 'package.json' : JSON . stringify (
268268 {
269269 name : 'test' ,
270270 version : '1.0.0' ,
@@ -291,11 +291,11 @@ describe('writeFiles', () => {
291291 await writeFiles (
292292 environment ,
293293 '/foo' ,
294- { files : { } , deletedFiles : [ './ bloop.txt' ] } ,
294+ { files : { } , deletedFiles : [ 'bloop.txt' ] } ,
295295 true ,
296296 )
297297 environment . finishRun ( )
298- expect ( output . deletedFiles ) . toEqual ( [ './ bloop.txt' ] )
298+ expect ( output . deletedFiles ) . toEqual ( [ 'bloop.txt' ] )
299299 } )
300300} )
301301
@@ -338,8 +338,8 @@ describe('addToApp', () => {
338338 } )
339339 environment . finishRun ( )
340340 expect ( output . files ) . toEqual ( {
341- './ jack.txt' : 'foo' ,
342- './ package.json' : JSON . stringify (
341+ 'jack.txt' : 'foo' ,
342+ 'package.json' : JSON . stringify (
343343 {
344344 name : 'test' ,
345345 version : '1.0.0' ,
0 commit comments