overleaf/services/web/test/unit/src/Referal/ReferalControllerTests.js

23 lines
498 B
JavaScript
Raw Normal View History

const SandboxedModule = require('sandboxed-module')
require('chai').should()
const modulePath = require('path').join(
__dirname,
'../../../../app/src/Features/Referal/ReferalController.js'
)
describe('Referal controller', function() {
beforeEach(function() {
this.controller = SandboxedModule.require(modulePath, {
globals: {
console: console
},
requires: {
'logger-sharelatex': {
log() {},
err() {}
}
}
})
})
})