Made POST requests actual post requests

This commit is contained in:
RemixDev
2022-01-13 01:27:08 +01:00
parent 62cb39f154
commit bb6e4bec0d
8 changed files with 22 additions and 22 deletions

View File

@@ -0,0 +1,15 @@
import { appSendGet } from '../../../../tests/utils'
describe('analyzeLink requests', () => {
it('should respond 200 to calls with supported child number', async () => {
const res = await appSendGet('/api/changeAccount/?child=1')
expect(res.status).toBe(200)
})
it('should respond 400 to calls with not supported child number', async () => {
const res = await appSendGet('/api/changeAccount/')
expect(res.status).toBe(400)
})
})