"use strict";
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
Object.defineProperty(exports, "__esModule", { value: true });
const internal_1 = require("../../../internal");
describe('Cdm/CdmTraitDefinition/CdmTraitDefinition', () => {
    it('TestExtendsTraitPropertyOptional', () => {
        const corpus = new internal_1.CdmCorpusDefinition();
        const extendTraitRef1 = new internal_1.CdmTraitReference(corpus.ctx, 'testExtendTraitName1', true, false);
        const extendTraitRef2 = new internal_1.CdmTraitReference(corpus.ctx, 'testExtendTraitName2', true, false);
        const traitDefinition = new internal_1.CdmTraitDefinition(corpus.ctx, 'testTraitName', extendTraitRef1);
        expect(traitDefinition.extendsTrait)
            .toEqual(extendTraitRef1);
        traitDefinition.extendsTrait = undefined;
        expect(traitDefinition.extendsTrait)
            .toBeFalsy;
        traitDefinition.extendsTrait = extendTraitRef2;
        expect(traitDefinition.extendsTrait)
            .toEqual(extendTraitRef2);
        traitDefinition.extendsTrait = undefined;
        expect(traitDefinition.extendsTrait)
            .toBeFalsy;
    });
});
//# sourceMappingURL=CdmTraitDefinition.test.js.map