Makelore 2.0 initial clean snapshot
This commit is contained in:
11
tests/unit/provider-accounts.test.ts
Normal file
11
tests/unit/provider-accounts.test.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { buildProviderAccountId } from '@/lib/provider-accounts';
|
||||
|
||||
describe('buildProviderAccountId', () => {
|
||||
it('generates a distinct account id when vendor metadata is unavailable', () => {
|
||||
const accountId = buildProviderAccountId('moonshot', null, []);
|
||||
|
||||
expect(accountId).toMatch(/^moonshot-/);
|
||||
expect(accountId).not.toBe('moonshot');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user