javascript-time-ago
Version:
Localized relative date/time formatting
29 lines (28 loc) • 802 B
JavaScript
;
var _getStepMinTime = _interopRequireDefault(require("./getStepMinTime.js"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
describe('getStepMinTime', function () {
it('should support `step.test()` function (returns true)', function () {
(0, _getStepMinTime["default"])({
test: function test() {
return true;
}
}, {
prevStep: {
minTime: 1
}
}).should.equal(0);
});
it('should support `step.test()` function (returns false)', function () {
(0, _getStepMinTime["default"])({
test: function test() {
return false;
}
}, {
prevStep: {
minTime: 1
}
}).should.equal(9007199254740991);
});
});
//# sourceMappingURL=getStepMinTime.test.js.map