fixes
This commit is contained in:
1 parent
c92ee93482
commit
af670e79f0
9 files changed
+667
-104
No files matched your search
@@ -47,3 +47,17 @@ describe('canonical default template across languages', () => {
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
describe('localized SEO metadata uses the same separate field structure', () => {
|
||||
it('has one independent braced title rule and one description rule in all languages', () => {
|
||||
for (const { value: lang } of CONTENT_LANGUAGES) {
|
||||
const { title, description, meta } = CATEGORY_FORMULA_RULES[lang];
|
||||
assert.ok(title.startsWith('{') && title.endsWith('}'), `${lang} title`);
|
||||
assert.equal((meta.match(/\{meta_title:/g) ?? []).length, 1, lang);
|
||||
assert.equal((meta.match(/\{meta_description:/g) ?? []).length, 1, lang);
|
||||
assert.equal((meta.match(/\}/g) ?? []).length, 2, lang);
|
||||
assert.ok(description.startsWith('<p>{') && description.endsWith('</li></ul>'), lang);
|
||||
assert.doesNotMatch(description, /100 words|100 riječi|100 думи/, lang);
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user