it("throws an error if `transform` is specified but not a function", () => {
        expect(() => from([]).toLookup(identity, 1))
            .toThrowError("`transform` should be a function");
    });