mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
Upgrade sinonjs (and related libs) (#9914)
* update sinon * remove errors * fix unit tests
This commit is contained in:
@@ -22,7 +22,8 @@ describe('developmentMode middleware', () => {
|
||||
|
||||
ensureDevelpmentMode(req, res, next);
|
||||
|
||||
expect(next).to.be.calledWith(new NotFound());
|
||||
const calledWith = next.getCall(0).args;
|
||||
expect(calledWith[0] instanceof NotFound).to.equal(true);
|
||||
});
|
||||
|
||||
it('passes when not in production', () => {
|
||||
|
||||
Reference in New Issue
Block a user