index.spec.js 560 B

123456789101112131415161718
  1. import { upperCaseFirst } from ".";
  2. var TEST_CASES = [
  3. ["", ""],
  4. ["test", "Test"],
  5. ["TEST", "TEST"],
  6. ];
  7. describe("upper case first", function () {
  8. var _loop_1 = function (input, result) {
  9. it(input + " -> " + result, function () {
  10. expect(upperCaseFirst(input)).toEqual(result);
  11. });
  12. };
  13. for (var _i = 0, TEST_CASES_1 = TEST_CASES; _i < TEST_CASES_1.length; _i++) {
  14. var _a = TEST_CASES_1[_i], input = _a[0], result = _a[1];
  15. _loop_1(input, result);
  16. }
  17. });
  18. //# sourceMappingURL=index.spec.js.map