"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var helpers_1 = require("./helpers");
describe('dependent lookup editor helper test', function () {
    it('should return sorted options', function () {
        expect((0, helpers_1.buildLookupOptions)({
            code1: { displayName: 'cName' },
            code2: { displayName: 'bName' },
            code3: { displayName: 'aName' }
        })).toEqual([
            {
                lookupCode: 'code3',
                value: 'aName'
            },
            {
                lookupCode: 'code2',
                value: 'bName'
            },
            {
                lookupCode: 'code1',
                value: 'cName'
            }
        ]);
    });
});
