UNPKG

wix-storybook-utils

Version:

Utilities for automated component documentation within Storybook

22 lines 783 B
/* global describe expect it */ import removeHOC from './remove-hoc'; describe('removeHOC() given', function () { var assertsAndExpectations = [ ['', ''], ['how are you', 'how are you'], ['hey(there', 'hey(there'], ['hello', 'hello'], ['im)ok', 'im)ok'], ['hello(world)', 'world'], ['Hel+lo(world)', 'world'], ['hello(w o r l d)', 'w o r l d'], ['(hello)', 'hello'], ]; assertsAndExpectations.map(function (_a) { var assert = _a[0], expectation = _a[1]; return it("\"".concat(assert, "\" should return \"").concat(expectation, "\""), function () { return expect(removeHOC(assert)).toEqual(expectation); }); }); }); //# sourceMappingURL=remove-hoc.test.js.map