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