import { expect } from "chai";
import sinon from "sinon";
import { ScopeSet } from "../src/ScopeSet";

describe("ScopeSet.ts Unit Tests", () => {

    it("tests trimAndConvertArrayToLowerCase", () => {
        const scopeSet = ["S1", " S2", " S3 "];
        expect(ScopeSet.trimAndConvertArrayToLowerCase(scopeSet)).to.be.deep.eq(["s1", "s2", "s3"]);         
    });

    it("tests trimAndConvertToLowerCase", () => {
        const scope = " S1 ";
        expect(ScopeSet.trimAndConvertToLowerCase(scope)).to.be.eq("s1");
    })
});

import { expect } from "chai";
import sinon from "sinon";
import { ScopeSet } from "../src/ScopeSet";

describe("ScopeSet.ts Unit Tests", () => {

    it("tests trimAndConvertArrayToLowerCase", () => {
        const scopeSet = ["S1", " S2", " S3 "];
        expect(ScopeSet.trimAndConvertArrayToLowerCase(scopeSet)).to.be.deep.eq(["s1", "s2", "s3"]);         
    });

    it("tests trimAndConvertToLowerCase", () => {
        const scope = " S1 ";
        expect(ScopeSet.trimAndConvertToLowerCase(scope)).to.be.eq("s1");
    });

    it("tests trimScopes", () => {
        const scopeSet = ["S1", " S2  ", " S3 "];
        expect(ScopeSet.trimScopes(scopeSet)).to.be.deep.eq(["S1", "S2", "S3"]);         
    });
});

Add unit test for trimScopes
Add unit test for trimScopes
