UNPKG

chai-enzyme

Version:
20 lines (17 loc) 522 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = id; function id(_ref) { var wrapper = _ref.wrapper, markup = _ref.markup, arg1 = _ref.arg1, sig = _ref.sig; var actual = wrapper.id(); this.assert(wrapper.hasId(arg1), function () { return 'expected ' + sig + ' to have a #{exp} id, but it has #{act} ' + markup(); }, function () { return 'expected ' + sig + ' not to have a #{exp} id, but it has #{act} ' + markup(); }, arg1, actual); }