mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 01:22:54 +00:00
Resolve "Transition to ESLint"
This commit is contained in:
committed by
Rainer Killinger
parent
ca1d2444e0
commit
418ba67d15
@@ -55,14 +55,11 @@ describe('Bulk routes', async function () {
|
||||
});
|
||||
|
||||
it('should return (throw) error if a bulk with the provided UID cannot be found when adding to a bulk', async function () {
|
||||
await testApp
|
||||
.post(bulkRoute.urlPath)
|
||||
.set('Content-Type', 'application/json')
|
||||
.send(request);
|
||||
const bulkAddRouteurlPath = bulkAddRoute.urlPath.toLocaleLowerCase().replace(':uid', 'a-wrong-uid');
|
||||
await testApp.post(bulkRoute.urlPath).set('Content-Type', 'application/json').send(request);
|
||||
const bulkAddRouteUrlPath = bulkAddRoute.urlPath.toLocaleLowerCase().replace(':uid', 'a-wrong-uid');
|
||||
|
||||
const {status} = await testApp
|
||||
.post(bulkAddRouteurlPath)
|
||||
.post(bulkAddRouteUrlPath)
|
||||
.set('Content-Type', 'application/json')
|
||||
.send(book);
|
||||
|
||||
@@ -86,10 +83,7 @@ describe('Bulk routes', async function () {
|
||||
});
|
||||
|
||||
it('should return (throw) error if a bulk with the provided UID cannot be found when closing a bulk (done)', async function () {
|
||||
await testApp
|
||||
.post(bulkRoute.urlPath)
|
||||
.set('Content-Type', 'application/json')
|
||||
.send(request);
|
||||
await testApp.post(bulkRoute.urlPath).set('Content-Type', 'application/json').send(request);
|
||||
const bulkDoneRouteurlPath = bulkDoneRoute.urlPath.toLocaleLowerCase().replace(':uid', 'a-wrong-uid');
|
||||
|
||||
const {status} = await testApp
|
||||
@@ -100,7 +94,7 @@ describe('Bulk routes', async function () {
|
||||
expect(status).to.be.equal(new SCNotFoundErrorResponse().statusCode);
|
||||
});
|
||||
|
||||
it ('should close the bulk (done)', async function () {
|
||||
it('should close the bulk (done)', async function () {
|
||||
const response = await testApp
|
||||
.post(bulkRoute.urlPath)
|
||||
.set('Content-Type', 'application/json')
|
||||
|
||||
Reference in New Issue
Block a user