Skip to content

Commit 8cc265d

Browse files
committed
AP-6849 # Removed unit tests that do no apply anymore
1 parent ce2dca2 commit 8cc265d

2 files changed

Lines changed: 1 addition & 30 deletions

File tree

test/api/cors/read.test.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff 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
})

test/api/utils/project-meta.test.ts

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff 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: () => ({

0 commit comments

Comments
 (0)