"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const array_1 = require("../array");
describe('uniqueBasedOnHash', () => {
    it('returns a list of unique elements', () => {
        const items = [
            { x: '1', y: 1 },
            { x: '1', y: 2 },
            { x: '2', y: 3 },
        ];
        const hashFunction = ({ x }) => x;
        const result = (0, array_1.uniqueBasedOnHash)(items, hashFunction);
        expect(result).toEqual([
            { x: '1', y: 1 },
            { x: '2', y: 3 },
        ]);
    });
});
//# sourceMappingURL=array.test.js.map