mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-23 10:02:51 +00:00
feat: migrate backend to cosmiconfig
This commit is contained in:
@@ -21,10 +21,10 @@ import {
|
||||
SCTooManyRequestsErrorResponse,
|
||||
} from '@openstapps/core';
|
||||
import {expect} from 'chai';
|
||||
import {configFile} from '../../src/common.js';
|
||||
import {DEFAULT_TEST_TIMEOUT} from '../common.js';
|
||||
import {testApp} from '../tests-setup.js';
|
||||
import sinon from 'sinon';
|
||||
import {backendConfig} from '../../src/config.js';
|
||||
|
||||
describe('Search route', async function () {
|
||||
// increase timeout for the suite
|
||||
@@ -96,7 +96,7 @@ describe('Search route', async function () {
|
||||
|
||||
it('should respond with too many requests error if the number of sub-queries exceed their max number', async function () {
|
||||
const sandbox = sinon.createSandbox();
|
||||
sandbox.stub(configFile.backend, 'maxMultiSearchRouteQueries').value(2);
|
||||
sandbox.stub(backendConfig.backend, 'maxMultiSearchRouteQueries').value(2);
|
||||
|
||||
const {status} = await testApp
|
||||
.post(multiSearchRoute.urlPath)
|
||||
|
||||
Reference in New Issue
Block a user