// SPDX-License-Identifier: Apache-2.0
import { expect } from 'chai';
import { LayeredModelConfigSource } from '../../../../../src/data/configuration/impl/layered-model-config-source.js';
import { YamlFileStorageBackend } from '../../../../../src/data/backend/impl/yaml-file-storage-backend.js';
describe('LayeredModelConfigSource', () => {
    it('constructor with null ObjectMapper throws error', () => {
        expect(() => {
            // @ts-expect-error - testing protected constructor
            new LayeredModelConfigSource(null, null, null, null);
        }).to.throw('ObjectMapper is required');
    });
    it('test modelData getter and setter', () => {
        // @ts-expect-error - testing protected constructor
        const source = new LayeredModelConfigSource('key', {}, new YamlFileStorageBackend('.'), {});
        source.modelData = 'modelData';
        expect(source.modelData).to.equal('modelData');
    });
});
//# sourceMappingURL=layered-model-config-source.test.js.map