import { describe, it, expect } from 'vitest'; import { AllowAllAuthority } from '../src/adapters/teltonika/device-authority.js'; describe('AllowAllAuthority', () => { it('returns "known" for any IMEI', async () => { const authority = new AllowAllAuthority(); expect(await authority.check('356307042441013')).toBe('known'); }); it('returns "known" for an empty string (authority ignores content)', async () => { const authority = new AllowAllAuthority(); expect(await authority.check('')).toBe('known'); }); it('returns "known" for an unknown/unseen IMEI', async () => { const authority = new AllowAllAuthority(); expect(await authority.check('999999999999999')).toBe('known'); }); });