import {describe} from "mocha";
import {StringHelper} from "../e2e/helpers/common-helpers/string-helper";
import {expect} from "chai";

describe('Check Common-helpers > string-helpers.ts > generateCustomFrameworkNames()', () => {
    it('should generate correct framework names', () => {
        const modifiedName = StringHelper.generateCustomFrameworkNames(' sample Framework Names ');
        expect(modifiedName).to.equal('sample-framework-names');
    })
})

describe('Check Common-helpers > string-helpers.ts > replaceLineBreaks()', () => {
    it('should handle line breaks correctly', () => {
        const modifiedName = StringHelper.replaceLineBreaks('This is line 1\nThis is line 2');
        expect(modifiedName).to.equal('This is line 1 This is line 2');
    })
})
