javascript-time-ago
Version:
Localized relative date/time formatting
26 lines • 637 B
JavaScript
import getStepMinTime from './getStepMinTime.js';
describe('getStepMinTime', function () {
it('should support `step.test()` function (returns true)', function () {
getStepMinTime({
test: function test() {
return true;
}
}, {
prevStep: {
minTime: 1
}
}).should.equal(0);
});
it('should support `step.test()` function (returns false)', function () {
getStepMinTime({
test: function test() {
return false;
}
}, {
prevStep: {
minTime: 1
}
}).should.equal(9007199254740991);
});
});
//# sourceMappingURL=getStepMinTime.test.js.map