feat(swarm): implement mission picker for left panel
This commit is contained in:
parent
1925d625b6
commit
f35ae8df33
2 changed files with 48 additions and 0 deletions
14
tests/components/swarm/swarm-mission-picker.test.tsx
Normal file
14
tests/components/swarm/swarm-mission-picker.test.tsx
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { expect, test, describe, mock } from 'bun:test';
|
||||
|
||||
// Mock the hook that the component tries to import
|
||||
mock.module('@/hooks/use-url-state', () => ({
|
||||
useUrlState: () => ({ setUrlState: () => { }, swarmId: '1' })
|
||||
}));
|
||||
|
||||
describe('SwarmMissionPicker Component', () => {
|
||||
test('exports SwarmMissionPicker component that is a function', async () => {
|
||||
const mod = await import('../../../src/components/swarm/swarm-mission-picker');
|
||||
expect(mod.SwarmMissionPicker).toBeDefined();
|
||||
expect(typeof mod.SwarmMissionPicker).toBe('function');
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue