Add MindSpace decoupling foundation
This commit is contained in:
@@ -20,11 +20,12 @@ test('buildEditablePreviewDocument injects visual editor into body', () => {
|
||||
assert.match(result, /isProtectedNode/);
|
||||
});
|
||||
|
||||
test('buildEditablePreviewDocument normalizes platform brand contact line', () => {
|
||||
test('buildEditablePreviewDocument normalizes platform brand line', () => {
|
||||
const html = '<!doctype html><html><body><p>📧 contact@tkmind.ai</p></body></html>';
|
||||
const result = buildEditablePreviewDocument(html);
|
||||
assert.match(result, /contact@tkmind\.cn/);
|
||||
assert.match(result, /TKMind · 智趣/);
|
||||
assert.match(result, /data-mindspace-page-tag="platform-brand"/);
|
||||
assert.doesNotMatch(result, /contact@tkmind\.cn/i);
|
||||
assert.doesNotMatch(result, /tkmind\.ai/i);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user