MCPcopy Create free account
hub / github.com/dfinity/orbit / mockWasmModuleEntry

Function mockWasmModuleEntry

apps/wallet/src/services/control-panel.service.spec.ts:6–23  ·  view source on GitHub ↗
(name: string, version: string)

Source from the content-addressed store, hash-verified

4import { ControlPanelService } from '~/services/control-panel.service';
5
6const 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
25describe('ControlPanelService', () => {
26 it('should find module of a given version', async () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected