2
0

⬆️ Upgrade dependencies

This commit is contained in:
Baptiste Arnaud
2022-11-15 15:42:13 +01:00
parent 972094425a
commit 8ca9af4911
13 changed files with 2673 additions and 2254 deletions

View File

@ -1,6 +1,6 @@
import test, { expect } from '@playwright/test'
import cuid from 'cuid'
import { HttpMethod } from 'models'
import { HttpMethod, Typebot } from 'models'
import {
createWebhook,
deleteTypebots,
@ -100,9 +100,9 @@ test.describe('API', () => {
const response = await request.get(`/api/typebots`, {
headers: { Authorization: `Bearer ${apiToken}` },
})
const { typebots } = (await response.json()) as { typebots: unknown[] }
const { typebots } = (await response.json()) as { typebots: Typebot[] }
expect(typebots.length).toBeGreaterThanOrEqual(1)
expect(typebots[0]).toMatchObject({
expect(typebots.find((typebot) => typebot.id === typebotId)).toMatchObject({
id: typebotId,
publishedTypebotId: null,
name: 'My typebot',