Skip to content

Commit

Permalink
feat(DTFS2-7052): typescript type improvement in api-test helper
Browse files Browse the repository at this point in the history
  • Loading branch information
avaitonis committed Apr 25, 2024
1 parent 5a0ee93 commit 6bf5a4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/support/api.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { AUTH } from '@ukef/constants';
import { ENVIRONMENT_VARIABLES } from '@ukef-test/support/environment-variables';
import request from 'supertest';
import TestAgent from 'supertest/lib/agent';

import { App } from './app';

Expand Down Expand Up @@ -33,7 +34,7 @@ export class Api {
return this.app.destroy();
}

private request(): any {
private request(): TestAgent<request.Test> {
return request(this.app.getHttpServer());
}

Expand Down

0 comments on commit 6bf5a4d

Please sign in to comment.