Skip to content
Snippets Groups Projects
Commit bb687cf4 authored by Fredrik Fonn Hansen's avatar Fredrik Fonn Hansen :8ball:
Browse files

Merge branch 'fix-api-test' into 'main'

Fix api test

See merge request !81
parents 34cb1ba8 4adfb160
No related branches found
No related tags found
1 merge request!81Fix api test
Pipeline #217643 passed
......@@ -35,47 +35,43 @@ describe('Game Test', () => {
url: `${Cypress.config('baseUrl')}/game/${gameId}/move`,
body: {
gameId: gameId,
gameStatus: false,
isFinished: false,
currentTurn: 0,
users: [
[
{
{
user: {
wins: 0,
highscore: 0,
games: 0,
losses: 0,
username: user1,
highscore: 2,
games: 3,
losses: 2,
},
{
position: 110,
stats: {
position: 100,
turretAngle: 0,
health: 100,
power: 0,
ammunition: 100,
score: 0,
isMirrored: true,
tankDirection: 'left',
tankType: 'M107',
},
],
[
{
},
{
user: {
wins: 0,
highscore: 0,
games: 0,
losses: 0,
username: user2,
},
{
position: 910,
turretAngle: 30,
stats: {
position: 900,
turretAngle: 0,
health: 100,
power: 0,
ammunition: 100,
score: 0,
isMirrored: false,
tankDirection: 'right',
tankType: 'M1A2',
},
],
},
],
},
failOnStatusCode: false,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment