mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 06:40:31 +00:00
feat(server): more e2e test cases
This commit is contained in:
20
packages/server/test/banking-accounts.e2e-spec.ts
Normal file
20
packages/server/test/banking-accounts.e2e-spec.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import * as request from 'supertest';
|
||||
import { app, AuthorizationHeader, orgainzationId } from './init-app-test';
|
||||
|
||||
describe('Banking Accounts (e2e)', () => {
|
||||
it('/banking/accounts (GET)', () => {
|
||||
return request(app.getHttpServer())
|
||||
.get('/banking/accounts')
|
||||
.set('organization-id', orgainzationId)
|
||||
.set('Authorization', AuthorizationHeader)
|
||||
.expect(200);
|
||||
});
|
||||
|
||||
it('/banking/accounts/:bankAccountId/summary (GET)', () => {
|
||||
return request(app.getHttpServer())
|
||||
.get('/banking/accounts/1/summary')
|
||||
.set('organization-id', orgainzationId)
|
||||
.set('Authorization', AuthorizationHeader)
|
||||
.expect(200);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user