ci: Fix lint warnings in @n8n/chat and @n8n/nodes-langchain (no-changelog) (#7884)

Solve lint warnings shown on all PRs for `@n8n/chat` and
`@n8n/nodes-langchain`

Example: https://github.com/n8n-io/n8n/pull/7883/files
This commit is contained in:
Iván Ovejero
2023-11-30 13:22:27 +01:00
committed by GitHub
parent 627ddb91fb
commit b024cc52e7
4 changed files with 22 additions and 23 deletions

View File

@@ -86,7 +86,7 @@ describe('createChat()', () => {
expect.objectContaining({
method: 'POST',
headers: {},
body: expect.stringMatching(/"action":"loadPreviousSession"/),
body: expect.stringContaining('"action":"loadPreviousSession"') as unknown,
mode: 'cors',
cache: 'no-cache',
}),
@@ -160,7 +160,7 @@ describe('createChat()', () => {
expect.objectContaining({
method: 'POST',
headers: {},
body: expect.stringMatching(/"action":"sendMessage"/),
body: expect.stringMatching(/"action":"sendMessage"/) as unknown,
mode: 'cors',
cache: 'no-cache',
}),