1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-10 16:00:05 +00:00

test(deploy): fix payload

This commit is contained in:
Yury Shkoda
2021-10-26 08:22:44 +00:00
parent 361b539271
commit 8f815b7874

View File

@@ -74,7 +74,9 @@ describe('deploy', () => {
}) })
it('should respond with payload example if valid payload was not provided', async () => { it('should respond with payload example if valid payload was not provided', async () => {
const res = await request(app).post('/deploy').send(getTreeExample()) const res = await request(app)
.post('/deploy')
.send({ fileTree: getTreeExample() })
expect(res.statusCode).toEqual(200) expect(res.statusCode).toEqual(200)
expect(res.text).toEqual( expect(res.text).toEqual(