Skip to content

Commit 15b9214

Browse files
committed
fix: stop ci failing due to environment variables not being correctly set
1 parent 3109710 commit 15b9214

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

pageTests/visits/end.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import EndOfVisit, { getServerSideProps } from "../../pages/visits/end";
44

55
describe("end", () => {
66
beforeAll(() => {
7-
process.env.UR_QUESTION = true;
7+
process.env.ENABLE_UR_QUESTION = "yes";
88
});
99

1010
afterAll(() => {
11-
process.env.UR_QUESTION = false;
11+
process.env.ENABLE_UR_QUESTION = "no";
1212
});
1313

1414
describe("for a key contact", () => {

pageTests/visits/endUrQuestion.test.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,11 @@ import nock from "nock";
88

99
describe("end UR question", () => {
1010
beforeAll(() => {
11-
process.env.UR_QUESTION = true;
11+
process.env.ENABLE_UR_QUESTION = "yes";
1212
});
1313

14-
afterEach(() => {});
15-
1614
afterAll(() => {
17-
process.env.UR_QUESTION = false;
15+
process.env.ENABLE_UR_QUESTION = "no";
1816
});
1917

2018
describe("<EndUrQuestion/>", () => {

0 commit comments

Comments
 (0)