File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,19 +72,4 @@ describe('read', () => {
7272 origins : [ 'test' ] ,
7373 } )
7474 } )
75-
76- test ( 'Should return cors as false when config throws an error' , async ( ) => {
77- vi . doMock ( '../../../src/blinkmrc.js' , ( ) => ( {
78- projectConfig : ( ) => ( {
79- load : async ( ) => {
80- throw new Error ( 'test' )
81- } ,
82- update : async ( ) => ( { } ) ,
83- } ) ,
84- } ) )
85- const { default : read } = await import ( '../../../src/api/cors/read.js' )
86-
87- const cors = await read ( CWD )
88- expect ( cors ) . toBe ( false )
89- } )
9075} )
Original file line number Diff line number Diff line change @@ -34,24 +34,10 @@ describe('project-meta', () => {
3434 projectMeta . projectConfig ( CWD )
3535 expect ( mockProjectConfig ) . toBeCalledWith ( {
3636 cwd : CWD ,
37+ ENOENTResult : { } ,
3738 } )
3839 } )
3940
40- test ( 'read() should return empty object if load() rejects' , async ( ) => {
41- vi . doMock ( '../../../src/blinkmrc.js' , ( ) => ( {
42- projectConfig : ( ) => ( {
43- load : async ( ) => {
44- throw new Error ( )
45- } ,
46- } ) ,
47- } ) )
48- const { default : projectMeta } =
49- await import ( '../../../src/api/utils/project-meta.js' )
50-
51- const meta = await projectMeta . read ( CWD )
52- expect ( meta ) . toEqual ( { } )
53- } )
54-
5541 test ( 'write() should call the updater function passed' , async ( ) => {
5642 vi . doMock ( '../../../src/blinkmrc.js' , ( ) => ( {
5743 projectConfig : ( ) => ( {
You can’t perform that action at this time.
0 commit comments