wix-storybook-utils
Version:
Utilities for automated component documentation within Storybook
25 lines • 939 B
JavaScript
;
/* global describe expect it */
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var remove_hoc_1 = tslib_1.__importDefault(require("./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((0, remove_hoc_1.default)(assert)).toEqual(expectation);
});
});
});
//# sourceMappingURL=remove-hoc.test.js.map