@whisklabs/grpc
Version:
gRPC generator and http library for typescript
22 lines • 863 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var utils_1 = require("../http/utils");
var utils_2 = require("./utils");
describe('camelCase', function () {
it('camelCase base', function () {
expect((0, utils_2.camelCase)('ab_cd_ef')).toBe('abCdEf');
expect((0, utils_2.camelCase)('ab_2d_ef')).toBe('ab_2dEf');
expect((0, utils_2.camelCase)('___ab_2d___')).toBe('__Ab_2d___');
});
var words = ['ab_cd_ef', 'ab_2d_ef', '___ab_2d___'];
var _loop_1 = function (word) {
it("camelCase: ".concat(word), function () {
expect((0, utils_1.snakeCase)((0, utils_2.camelCase)(word))).toBe(word);
});
};
for (var _i = 0, words_1 = words; _i < words_1.length; _i++) {
var word = words_1[_i];
_loop_1(word);
}
});
//# sourceMappingURL=utils.spec.js.map