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:
13
packages/server/test/inventory-cost.e2e-spec.ts
Normal file
13
packages/server/test/inventory-cost.e2e-spec.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import * as request from 'supertest';
|
||||
import { app, AuthorizationHeader, orgainzationId } from './init-app-test';
|
||||
|
||||
describe('Inventory Cost (e2e)', () => {
|
||||
it('/inventory-cost/items (GET)', () => {
|
||||
return request(app.getHttpServer())
|
||||
.get('/inventory-cost/items')
|
||||
.query({ itemsIds: [1], date: '2023-01-01' })
|
||||
.set('organization-id', orgainzationId)
|
||||
.set('Authorization', AuthorizationHeader)
|
||||
.expect(200);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user