import assert from 'node:assert/strict'; import { test } from 'node:test'; import { NativeSettingsAdapter } from '../../YouleNexus/assets/framework/adapters/native/native-settings-adapter.ts'; test('native settings calls the three original method spellings and preserves returns', () => { const calls: unknown[][] = []; const adapter = new NativeSettingsAdapter({ getothername(name) { calls.push(['getothername', name]); return name === 'agent' ? 0 : `value:${name}`; }, getchannelName() { calls.push(['getchannelName']); return 'channel-a'; }, getmarketname() { calls.push(['getmarketname']); return 17; }, }); assert.equal(adapter.getOtherName('agent'), 0); assert.equal(adapter.getOtherName('gameserver'), 'value:gameserver'); assert.equal(adapter.getChannelName(), 'channel-a'); assert.equal(adapter.getMarketName(), 17); assert.deepEqual(calls, [ ['getothername', 'agent'], ['getothername', 'gameserver'], ['getchannelName'], ['getmarketname'], ]); });