mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
869fcf7952
Handle error on Mailchimp unsubscribe when deleting users GitOrigin-RevId: 8923480e6d50de45003fd7741610f995753a412b
14 lines
392 B
JavaScript
14 lines
392 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'))
|
|
|
|
// add support for promises in sinon
|
|
require('sinon-as-promised')
|
|
// add support for mongoose in sinon
|
|
require('sinon-mongoose')
|