mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
5f107374a6
Move collaborators code to async/await GitOrigin-RevId: 55b5dd8154d024e2cee738208c45a8139870b92b
17 lines
463 B
JavaScript
17 lines
463 B
JavaScript
const chai = require('chai')
|
|
require('sinon')
|
|
|
|
// Load sinon-chai assertions so expect(stubFn).to.have.been.calledWith('abc')
|
|
// has a nicer failure messages
|
|
chai.use(require('sinon-chai'))
|
|
|
|
// Load promise support for chai
|
|
chai.use(require('chai-as-promised'))
|
|
|
|
// Do not truncate assertion errors
|
|
chai.config.truncateThreshold = 0
|
|
|
|
// add support for promises in sinon
|
|
require('sinon-as-promised')
|
|
// add support for mongoose in sinon
|
|
require('sinon-mongoose')
|