"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");
const Persistence_1 = require("../../../../Persistence");
const testHelper_1 = require("../../../testHelper");
describe('Persistence.CdmFolder.BackCompEntityDeclaration', () => {
    /// <summary>
    /// The path between TestDataPath and TestName.
    /// </summary>
    const testsSubpath = 'Persistence/CdmFolder/BackCompEntityDeclaration';
    it('TestLoadLegacyEntityDeclaration', () => {
        const content = testHelper_1.testHelper.getInputFileContent(testsSubpath, 'TestLoadLegacyEntityDeclaration', 'entities.manifest.cdm.json');
        const cdmManifest = Persistence_1.CdmFolder.ManifestPersistence.fromObject(new internal_1.resolveContext(new internal_1.CdmCorpusDefinition(), undefined), '', '', '', JSON.parse(content));
        // local entity declaration
        expect(cdmManifest.entities.allItems[0].entityPath)
            .toEqual('testPath');
        // referenced entity declaration
        expect(cdmManifest.entities.allItems[1].entityPath)
            .toEqual('Account.cdm.json/Account');
    });
});
//# sourceMappingURL=BackCompEntityDeclaration.test.js.map