source: imaps-frontend/node_modules/lower-case/dist/index.spec.js@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 1.2 KB
RevLine 
[79a0317]1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var _1 = require(".");
4var TEST_CASES = [
5 ["", ""],
6 ["test", "test"],
7 ["TEST", "test"],
8 ["test string", "test string"],
9 ["TEST STRING", "test string"],
10];
11var LOCALE_TEST_CASES = [
12 ["STRING", "strıng", "tr"],
13];
14describe("lower case", function () {
15 var _loop_1 = function (input, result) {
16 it(input + " -> " + result, function () {
17 expect(_1.lowerCase(input)).toEqual(result);
18 });
19 };
20 for (var _i = 0, TEST_CASES_1 = TEST_CASES; _i < TEST_CASES_1.length; _i++) {
21 var _a = TEST_CASES_1[_i], input = _a[0], result = _a[1];
22 _loop_1(input, result);
23 }
24});
25describe("locale lower case", function () {
26 var _loop_2 = function (input, result, locale) {
27 it(locale + ": " + input + " -> " + result, function () {
28 expect(_1.localeLowerCase(input, locale)).toEqual(result);
29 });
30 };
31 for (var _i = 0, LOCALE_TEST_CASES_1 = LOCALE_TEST_CASES; _i < LOCALE_TEST_CASES_1.length; _i++) {
32 var _a = LOCALE_TEST_CASES_1[_i], input = _a[0], result = _a[1], locale = _a[2];
33 _loop_2(input, result, locale);
34 }
35});
36//# sourceMappingURL=index.spec.js.map
Note: See TracBrowser for help on using the repository browser.