All files / publisher-admin/mocks mockPackage.ts

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

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 458x                                                                                        
const mockPackage = {
  authority: null,
  contact: "mailto:john.doe@canonical.com",
  "default-track": "latest",
  description:
    "This will install and setup WordPress optimized to run in the cloud. By default it will \nplace Ngnix and php-fpm configured to scale horizontally with Nginx's reverse proxy.\n",
  id: "SOjruIxw5EvYsdcT84XpQNc11X2k",
  links: {
    contact: ["mailto:john.doe@canonical.com"],
    website: [],
  },
  media: [
    {
      type: "icon",
      url: "https://api.charmhub.io/api/v1/media/download/charm_VSOjrugIxw5EvYsdcT84XpQwNc11Xj2k_icon_9213239a9c8cd00aeb48022ed9826b27c62763960488a45189dd22ecea7d691e.png",
    },
  ],
  name: "test-charm-name",
  private: false,
  publisher: {
    "display-name": "John Doe",
    id: "prFvmvasQbXLNaVaQV4EAJ8zh0Ej",
    username: "johndoe",
    validation: "unproven",
  },
  status: "published",
  store: "ubuntu",
  summary:
    "WordPress is a full featured web blogging tool, this charm deploys it.",
  title: "Test charm name",
  "track-guardrails": [],
  tracks: [
    {
      "automatic-phasing-percentage": null,
      "created-at": "2024-04-24T14:56:31.444168",
      name: "latest",
      "version-pattern": null,
    },
  ],
  type: "charm",
  website: null,
};
 
export default mockPackage;