feat(footer): add isometric Three.js contact scene
This commit is contained in:
15
tests/footer-scene.test.mjs
Normal file
15
tests/footer-scene.test.mjs
Normal file
@@ -0,0 +1,15 @@
|
||||
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/);
|
||||
});
|
||||
Reference in New Issue
Block a user