"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const vitest_1 = require("vitest");
const string_js_1 = require("./string.js");
(0, vitest_1.describe)('camel case to display', () => {
    (0, vitest_1.test)('can convert camel case to display', () => {
        (0, vitest_1.expect)((0, string_js_1.camelCaseToDisplay)('testCamelCase')).toBe('Test Camel Case');
    });
});
(0, vitest_1.describe)('validate email', () => {
    (0, vitest_1.test)('can validate email', () => {
        (0, vitest_1.expect)((0, string_js_1.validateEmail)('somebody@domain.com')).toBe(true);
        (0, vitest_1.expect)((0, string_js_1.validateEmail)('somebody+test@domain.com')).toBe(true);
        (0, vitest_1.expect)((0, string_js_1.validateEmail)('some-body_123@domain.com')).toBe(true);
        (0, vitest_1.expect)((0, string_js_1.validateEmail)('somebody@domain.another.com')).toBe(true);
        (0, vitest_1.expect)((0, string_js_1.validateEmail)('somebody@place@domain.com')).toBe(false);
        (0, vitest_1.expect)((0, string_js_1.validateEmail)('some<>body@domain.com')).toBe(false);
    });
});
(0, vitest_1.describe)('getNextEntityName', () => {
    (0, vitest_1.test)('get next name with underscore', async () => {
        (0, vitest_1.expect)((0, string_js_1.getNextEntityName)('Tabs_', ['Tabs_1', 'Tabs_2', 'Tabs_3'])).toEqual('Tabs_4');
        (0, vitest_1.expect)((0, string_js_1.getNextEntityName)('Tabs_', ['Tabs_1', 'Tabs_2', 'Tabs_5'])).toEqual('Tabs_6');
        (0, vitest_1.expect)((0, string_js_1.getNextEntityName)('Tabs_', [])).toEqual('Tabs_1');
        (0, vitest_1.expect)((0, string_js_1.getNextEntityName)('Tabs_', ['Tabs_____1', 'Tabs__2', 'Tabs___3'])).toEqual('Tabs_4');
    });
    (0, vitest_1.test)('get next name with space', async () => {
        (0, vitest_1.expect)((0, string_js_1.getNextEntityName)('Tabs ', ['Tabs 1', 'Tabs 2', 'Tabs 3'], ' ')).toEqual('Tabs 4');
        (0, vitest_1.expect)((0, string_js_1.getNextEntityName)('Tabs ', ['Tabs 1', 'Tabs 2', 'Tabs 5'], ' ')).toEqual('Tabs 6');
        (0, vitest_1.expect)((0, string_js_1.getNextEntityName)('Tabs ', [], ' ')).toEqual('Tabs 1');
        (0, vitest_1.expect)((0, string_js_1.getNextEntityName)('Tabs ', ['Tabs     1', 'Tabs  2', 'Tabs   3'], ' ')).toEqual('Tabs 4');
        (0, vitest_1.expect)((0, string_js_1.getNextEntityName)('Tabs ', ['Tabs 1', 'Tabs 2      ', 'Tabs 3  '], ' ')).toEqual('Tabs 4');
    });
});
//# sourceMappingURL=string.test.js.map