UNPKG

621 BJavaScriptView Raw
1import { isUpperCase } from ".";
2var TEST_CASES = [
3 ["", false],
4 ["test", false],
5 ["TEST", true],
6 ["Test", false],
7 ["123", false],
8 ["CONSTANT_CASE", true],
9];
10describe("is upper case", function () {
11 var _loop_1 = function (input, result) {
12 it(input + " -> " + result, function () {
13 expect(isUpperCase(input)).toEqual(result);
14 });
15 };
16 for (var _i = 0, TEST_CASES_1 = TEST_CASES; _i < TEST_CASES_1.length; _i++) {
17 var _a = TEST_CASES_1[_i], input = _a[0], result = _a[1];
18 _loop_1(input, result);
19 }
20});
21//# sourceMappingURL=index.spec.js.map
\No newline at end of file