UNPKG

chai-enzyme

Version:
17 lines (15 loc) 400 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exist; function exist(_ref) { var wrapper = _ref.wrapper, markup = _ref.markup, sig = _ref.sig; this.assert(wrapper.isPresent(), function () { return 'expected ' + sig + ' to exist ' + markup(); }, function () { return 'expected ' + sig + ' not to exist ' + markup(); }); }