/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { expect, test } from "vitest"; import { Incidentio } from "../index.js"; test("Incident Updates Incident Updates V2 #List", async () => { const incidentio = new Incidentio(); const result = await incidentio.incidentUpdates.list({ incidentId: "01G0J1EXE7AXZ2C93K61WBPYEH", pageSize: 25, after: "01FDAG4SAP5TYPT98WGR2N7W91", }); expect(result).toBeDefined(); expect(result).toBeDefined(); expect(result).toEqual({ incidentUpdates: [ { createdAt: new Date("2021-08-17T13:28:57.801578Z"), id: "01FCNDV6P870EA6S7TK1DSYDG0", incidentId: "01FCNDV6P870EA6S7TK1DSYDG0", mergedIntoIncidentId: "abc123", message: "We're working on a fix, hoping to ship in the next 30 minutes", newIncidentStatus: { category: "triage", createdAt: new Date("2021-08-17T13:28:57.801578Z"), description: "Impact has been **fully mitigated**, and we're ready to learn from this incident.", id: "01FCNDV6P870EA6S7TK1DSYD5H", name: "Closed", rank: 4, updatedAt: new Date("2021-08-17T13:28:57.801578Z"), }, newSeverity: { createdAt: new Date("2021-08-17T13:28:57.801578Z"), description: "Issues with **low impact**.", id: "01FCNDV6P870EA6S7TK1DSYDG0", name: "Minor", rank: 1, updatedAt: new Date("2021-08-17T13:28:57.801578Z"), }, updater: { apiKey: { id: "01FCNDV6P870EA6S7TK1DSYDG0", name: "My test API key", }, user: { email: "lisa@incident.io", id: "01FCNDV6P870EA6S7TK1DSYDG0", name: "Lisa Karlin Curtis", role: "viewer", slackUserId: "U02AYNF2XJM", }, }, }, ], paginationMeta: { after: "01FCNDV6P870EA6S7TK1DSYDG0", pageSize: 25, }, }); });