(name: string, version: string)
| 4 | import { ControlPanelService } from '~/services/control-panel.service'; |
| 5 | |
| 6 | const mockWasmModuleEntry = (name: string, version: string): RegistryEntry => ({ |
| 7 | id: '', |
| 8 | name, |
| 9 | categories: [], |
| 10 | tags: [], |
| 11 | description: 'This is a test description', |
| 12 | created_at: '2024-01-01T00:00:00Z', |
| 13 | updated_at: [], |
| 14 | metadata: [], |
| 15 | value: { |
| 16 | WasmModule: { |
| 17 | dependencies: [], |
| 18 | version, |
| 19 | wasm_artifact_id: '', |
| 20 | module_extra_chunks: [], |
| 21 | }, |
| 22 | }, |
| 23 | }); |
| 24 | |
| 25 | describe('ControlPanelService', () => { |
| 26 | it('should find module of a given version', async () => { |
no outgoing calls
no test coverage detected