mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 17:23:02 +00:00
13 lines
357 B
JavaScript
13 lines
357 B
JavaScript
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
|
|
);
|
|
});
|
|
});
|