UNPKG

@kiwicom/smart-faq

Version:

Smart FAQ

24 lines (21 loc) 850 B
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _formatBookingId = _interopRequireDefault(require("../formatBookingId")); // @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'); }); });