move process.env.BACKEND to setup.js

This commit is contained in:
Brian Gough 2021-08-03 10:00:44 +01:00
parent 04ea24dfbc
commit 942feb3011
2 changed files with 3 additions and 1 deletions

View file

@ -12,7 +12,7 @@
* DS207: Consider shorter variations of null checks * DS207: Consider shorter variations of null checks
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/ */
process.env.BACKEND = 'gcs'
const Settings = require('@overleaf/settings') const Settings = require('@overleaf/settings')
const { expect } = require('chai') const { expect } = require('chai')
const { db, ObjectId } = require('../../../app/js/mongodb') const { db, ObjectId } = require('../../../app/js/mongodb')

View file

@ -4,6 +4,8 @@ const sinonChai = require('sinon-chai')
const chaiAsPromised = require('chai-as-promised') const chaiAsPromised = require('chai-as-promised')
const SandboxedModule = require('sandboxed-module') const SandboxedModule = require('sandboxed-module')
process.env.BACKEND = 'gcs'
// Chai configuration // Chai configuration
chai.should() chai.should()
chai.use(sinonChai) chai.use(sinonChai)