This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
admin-panel/graphql-types/node_modules/is-upper-case/dist.es2015/index.spec.js

21 lines
621 B
JavaScript

import { isUpperCase } from ".";
var TEST_CASES = [
["", false],
["test", false],
["TEST", true],
["Test", false],
["123", false],
["CONSTANT_CASE", true],
];
describe("is upper case", function () {
var _loop_1 = function (input, result) {
it(input + " -> " + result, function () {
expect(isUpperCase(input)).toEqual(result);
});
};
for (var _i = 0, TEST_CASES_1 = TEST_CASES; _i < TEST_CASES_1.length; _i++) {
var _a = TEST_CASES_1[_i], input = _a[0], result = _a[1];
_loop_1(input, result);
}
});
//# sourceMappingURL=index.spec.js.map