/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { expect, test } from "vitest"; import { Incidentio } from "../index.js"; test("Incident Types Incident Types V1 #List", async () => { const incidentio = new Incidentio(); const result = await incidentio.incidentTypes.list(); expect(result).toBeDefined(); expect(result).toBeDefined(); expect(result).toEqual({ incidentTypes: [ { createInTriage: "always", createdAt: new Date("2021-08-17T13:28:57.801578Z"), description: "Customer facing production outages", id: "01FCNDV6P870EA6S7TK1DSYDG0", isDefault: false, name: "Production Outage", privateIncidentsOnly: false, updatedAt: new Date("2021-08-17T13:28:57.801578Z"), }, ], }); }); test("Incident Types Incident Types V1 #Show", async () => { const incidentio = new Incidentio(); const result = await incidentio.incidentTypes.get({ id: "01FCNDV6P870EA6S7TK1DSYDG0", }); expect(result).toBeDefined(); expect(result).toBeDefined(); expect(result).toEqual({ incidentType: { createInTriage: "always", createdAt: new Date("2021-08-17T13:28:57.801578Z"), description: "Customer facing production outages", id: "01FCNDV6P870EA6S7TK1DSYDG0", isDefault: false, name: "Production Outage", privateIncidentsOnly: false, updatedAt: new Date("2021-08-17T13:28:57.801578Z"), }, }); });