mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-14 01:33:03 +00:00
30 lines
662 B
JavaScript
30 lines
662 B
JavaScript
iD.debug = true;
|
|
|
|
mocha.setup({
|
|
ui: 'bdd',
|
|
globals: [
|
|
'__onresize.tail-size',
|
|
'__onmousemove.zoom',
|
|
'__onmouseup.zoom',
|
|
'__onkeydown.select',
|
|
'__onkeyup.select',
|
|
'__onclick.draw',
|
|
'__onclick.draw-block'
|
|
]
|
|
});
|
|
|
|
var expect = chai.expect;
|
|
|
|
chai.use(function (chai, utils) {
|
|
var flag = utils.flag;
|
|
|
|
chai.Assertion.addMethod('classed', function (className) {
|
|
this.assert(
|
|
flag(this, 'object').classed(className)
|
|
, 'expected #{this} to be classed #{exp}'
|
|
, 'expected #{this} not to be classed #{exp}'
|
|
, className
|
|
);
|
|
});
|
|
});
|