Skip to content

Commit

Permalink
Switched assertion order
Browse files Browse the repository at this point in the history
  • Loading branch information
JanSpies82 committed Jul 16, 2023
1 parent b5e03b6 commit ee1768d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/test/auth.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import * as request from 'supertest';
import { AppModule } from '../src/app.module';
import { RefreshTokenDTO } from '../src/auth/dto/refresh_token.dto';
import * as dotenv from 'dotenv';
import exp from 'constants';

describe('AuthController (integration)', () => {
let app: INestApplication;
Expand Down Expand Up @@ -81,10 +80,10 @@ describe('AuthController (integration)', () => {
)
.send(requestRefreshToken);

expect(response.status).toBe(HttpStatus.OK);
expect(response.body).toHaveProperty(
'Token',
);
expect(response.status).toBe(HttpStatus.OK);
expect(response.body).toHaveProperty(
'Email',
);
Expand Down

0 comments on commit ee1768d

Please sign in to comment.