10 lines
612 B
TypeScript
10 lines
612 B
TypeScript
import test from 'node:test';
|
|
import assert from 'node:assert/strict';
|
|
import { openLobbyUrl } from '../../YouleNexus/assets/framework/adapters/native/lobby-links.ts';
|
|
test('announcement links preserve fixUrl and distinct native timestamp conventions',()=>{
|
|
const calls:unknown[]=[];
|
|
openLobbyUrl('https://example.test/?a=1?b=2',{kind:'settings',browser:u=>calls.push(u)},()=>123);
|
|
openLobbyUrl('https://example.test/?a=1?b=2',{kind:'bridge',call:(n,d)=>calls.push([n,d])},()=>123);
|
|
assert.deepEqual(calls,['https://example.test/?a=1&b=2×tamp=123',['browser','https://example.test/?a=1&b=2']]);
|
|
});
|