UNPKG

playable

Version:

Video player based on HTML5Video

16 lines 849 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var chai_1 = require("chai"); var formatTime_1 = (0, tslib_1.__importDefault)(require("./formatTime")); describe('formatTime', function () { it('should return valid string', function () { (0, chai_1.expect)((0, formatTime_1.default)(NaN)).to.be.equal('00:00'); (0, chai_1.expect)((0, formatTime_1.default)(Infinity)).to.be.equal('00:00'); (0, chai_1.expect)((0, formatTime_1.default)(0)).to.be.equal('00:00'); (0, chai_1.expect)((0, formatTime_1.default)(10)).to.be.equal('00:10'); (0, chai_1.expect)((0, formatTime_1.default)(110)).to.be.equal('01:50'); (0, chai_1.expect)((0, formatTime_1.default)(11100)).to.be.equal('03:05:00'); }); }); //# sourceMappingURL=formatTime.spec.js.map