Skip to content

Commit a58449d

Browse files
committed
fix: post-deploy tests
1 parent e2a976e commit a58449d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/post-deploy.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ describe('Post-Deploy Tests', () => {
6868
let actual = await res.text();
6969
const differ = new HtmlDiffer();
7070

71-
const regex = /<meta\s+property="product:lastModifiedAt"\s+content="[^"]*"\s*>/;
71+
const regex = /<meta\s+name="lastModifiedAtCS"\s+content="[^"]*"\s*>/;
7272
const match = actual.match(regex);
73-
assert(match, 'product:lastModifiedAt should be present');
73+
assert(match, 'lastModifiedAtCS should be present');
7474

7575
actual = actual.replace(regex, '');
7676

test/templates/html/index.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ describe('Render Product HTML', () => {
475475
dom = new JSDOM(html);
476476
document = dom.window.document;
477477

478-
const metaProductLastModified = document.querySelector('meta[property="product:lastModifiedAt"]');
479-
assert.strictEqual(metaProductLastModified.getAttribute('content'), 'undefined', 'meta[property="product:lastModifiedAt"] should be undefined');
478+
const metaProductLastModified = document.querySelector('meta[name="lastModifiedAtCS"]');
479+
assert.strictEqual(metaProductLastModified.getAttribute('content'), 'undefined', 'meta[name="lastModifiedAtCS"] should be undefined');
480480
});
481481
});

0 commit comments

Comments
 (0)