import {MethodStubCollection} from "../src/MethodStubCollection";

describe("MethodStubCollection", () => {
    describe("empty stub collection", () => {
        it("returns -1 if doesn't find method stub", () => {
            // given
            const methodStubCollection = new MethodStubCollection();

            // when
            const index = methodStubCollection.getLastMatchingGroupIndex([]);

            // then
            expect(index).toBe(-1);
        });
    });
});

Add unit test for MethodStubCollection
Add unit test for MethodStubCollection
