16 lines
665 B
JavaScript
16 lines
665 B
JavaScript
import assert from 'node:assert/strict';
|
|
import { readFile } from 'node:fs/promises';
|
|
import test from 'node:test';
|
|
|
|
test('the Three.js footer scene preserves the real contact destinations', async () => {
|
|
const contacts = await readFile('src/components/footerContacts.ts', 'utf8');
|
|
const scene = await readFile('src/components/scenes/FooterScene.tsx', 'utf8');
|
|
|
|
assert.match(contacts, /tel:\+989388263077/);
|
|
assert.match(contacts, /linkedin\.com\/in\/amiirkhl/);
|
|
assert.match(contacts, /https:\/\/git\.amiirkhl\.ir/);
|
|
assert.match(contacts, /https:\/\/t\.me\/amiirkhl/);
|
|
assert.match(scene, /Raycaster/);
|
|
assert.match(scene, /FooterContactId/);
|
|
});
|