Skip to content

Commit b62cdc7

Browse files
committed
test: update footer copy assertions
1 parent a96a9ee commit b62cdc7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/app.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,16 +178,16 @@ test("every trip timeline bar shows its day count", () => {
178178
});
179179

180180
test("travel days always use the whole-day absence convention", () => {
181-
assert.match(indexSource, /According to official guidance,[\s\S]*?days of departure or arrival[\s\S]*?are not counted as an absence\./);
181+
assert.match(indexSource, /According to the official guidance,[\s\S]*?days of departure or arrival[\s\S]*?are not counted as an absence\./);
182182
assert.doesNotMatch(indexSource, /Count as a day outside the UK|id="cdep"|id="carr"/);
183183
assert.doesNotMatch(appSource, /countDeparture|countArrival|CONV_KEY|restoreConvention/);
184184
assert.match(appSource, /tripBlocks\(trips, false, false\)/);
185185
assert.match(appSource, /initialBlock\(visaValidFrom, firstArrivalOn, false\)/);
186186
});
187187

188188
test("travel-day guidance sits after the full main layout", () => {
189-
assert.match(indexSource, /<\/main>\s*<footer>\s*<span>According to official guidance,/);
190-
assert.match(indexSource, /<span class="footer-credit">made with by Indradhanush Gupta<\/span>/);
189+
assert.match(indexSource, /<\/main>\s*<footer>\s*<span>According to the official guidance,/);
190+
assert.match(indexSource, /<span class="footer-credit">Made with by Indradhanush Gupta<\/span>/);
191191
assert.match(indexSource, /\.footer-credit \{[\s\S]*?margin-left: auto;[\s\S]*?text-align: right;/);
192192
assert.match(indexSource, /@media \(max-width: 520px\)[\s\S]*?\.footer-credit \{\s*flex-basis: 100%;/);
193193
assert.match(indexSource, /grid-template-rows: auto 1fr auto;/);

0 commit comments

Comments
 (0)