Skip to content

Commit f484cfe

Browse files
fix merge errors
1 parent 23af483 commit f484cfe

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/debug_spec.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if (typeof module !== 'undefined') {
66
var expect = chai.expect;
77

88
var debug = require('../src/index');
9-
var = require('sinon');
9+
var sinon = require('sinon');
1010
var sinonChai = require("sinon-chai");
1111
chai.use(sinonChai);
1212
}
@@ -36,20 +36,20 @@ describe('debug', function () {
3636
});
3737
});
3838

39-
describe('custom functions', () => {
40-
let log;
39+
describe('custom functions', function () {
40+
var log;
4141

42-
beforeEach(() => {
42+
beforeEach(function () {
4343
debug.enable('test');
4444
log = debug('test');
4545
});
4646

47-
context('with log function', () => {
48-
it('uses it', () => {
47+
context('with log function', function () {
48+
it('uses it', function () {
4949
log.log = sinon.spy();
5050
log('using custom log function');
5151

52-
chai.assert.calledOnce(log.log);
52+
expect(log.log).to.have.been.calledOnce;
5353
});
5454
});
5555
});

0 commit comments

Comments
 (0)