All files / interfaces/components testUtils.ts

100% Statements 3/3
100% Branches 0/0
100% Functions 0/0
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53    2x                                         2x                                         2x                
import type { InterfaceData } from "../types";
 
export const mockRequiringCharmsData: InterfaceData = {
  name: "Test Interface",
  version: "1.0",
  body: [],
  charms: {
    providers: [],
    requirers: [
      { name: "Requirer1", url: "http://example.com/requirer1" },
      { name: "Requirer2", url: "http://example.com/requirer2" },
    ],
  },
  other_charms: {
    providers: [],
    requirers: [
      { id: "other1", name: "Other Charm 1" },
      { id: "other2", name: "Other Charm 2" },
    ],
  },
  last_modified: null,
};
 
export const mockProvidingCharmsData: InterfaceData = {
  name: "Test Interface",
  version: "1.0",
  body: [],
  charms: {
    providers: [
      { name: "Provider1", url: "http://example.com/provider1" },
      { name: "Provider2", url: "http://example.com/provider2" },
    ],
    requirers: [],
  },
  other_charms: {
    providers: [
      { id: "other1", name: "Other Charm 1" },
      { id: "other2", name: "Other Charm 2" },
    ],
    requirers: [],
  },
  last_modified: null,
};
 
export const noCharmsData: InterfaceData = {
  name: "Test Interface",
  version: "1.0",
  body: [],
  charms: { providers: [], requirers: [] },
  other_charms: { providers: [], requirers: [] },
  last_modified: null,
};