Skip to content

Commit fbc59f6

Browse files
committed
test: unit tests updated with pcbcUrl config
Signed-off-by: Sanjay Babu <sanjaytkbabu@gmail.com>
1 parent 87f20bb commit fbc59f6

4 files changed

Lines changed: 4 additions & 0 deletions

File tree

app/tests/unit/domains/enquiry.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ vi.mock('config', async () => {
2929
get: vi.fn((key: string) => {
3030
if (key === 'server.ches.submission.cc') return 'noreply@example.com';
3131
if (key === 'server.pcns.appUrl') return 'www.example.com';
32+
if (key === 'server.pcbcUrl') return 'www.example.com';
3233

3334
return actual.get(key);
3435
}),

app/tests/unit/domains/permit.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ vi.mock('config', async () => {
3333
if (key === 'server.env') return 'test';
3434
if (key === 'server.pcns.navEmail') return 'nav@example.com';
3535
if (key === 'server.pcns.appUrl') return 'www.example.com';
36+
if (key === 'server.pcbcUrl') return 'www.example.com';
3637

3738
return actual.get(key);
3839
}),

app/tests/unit/domains/project.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ vi.mock('config', async () => {
2828
get: vi.fn((key: string) => {
2929
if (key === 'server.ches.submission.cc') return 'noreply@example.com';
3030
if (key === 'server.pcns.appUrl') return 'www.example.com';
31+
if (key === 'server.pcbcUrl') return 'www.example.com';
3132

3233
return actual.get(key);
3334
}),

app/tests/unit/services/peach.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ vi.mock('config', async () => {
1414
get: vi.fn((key: string) => {
1515
if (key === 'server.env') return 'ci';
1616
if (key === 'server.pcns.appUrl') return 'www.example.com';
17+
if (key === 'server.pcbcUrl') return 'www.example.com';
1718

1819
return actual.get(key);
1920
}),

0 commit comments

Comments
 (0)