@kiwicom/smart-faq
Version:
24 lines (21 loc) • 860 B
JavaScript
var _formatBookingId = _interopRequireDefault(require("../formatBookingId"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
// @flow
describe('formatBookingId', function () {
it('should check the formating #1', function () {
expect((0, _formatBookingId.default)(16)).toBe('16');
});
it('should check the formating #2', function () {
expect((0, _formatBookingId.default)(167)).toBe('167');
});
it('should check the formating #3', function () {
expect((0, _formatBookingId.default)(16702)).toBe('16 702');
});
it('should check the formating #4', function () {
expect((0, _formatBookingId.default)(6702575)).toBe('6 702 575');
});
it('should check the formating #5', function () {
expect((0, _formatBookingId.default)(16702575)).toBe('16 702 575');
});
});
;