import * as __WEBPACK_EXTERNAL_MODULE__collection_record_index_mjs__ from "../../collection-record/index.mjs";
describe('Record', ()=>{
    test('should works', ()=>{
        const record = new __WEBPACK_EXTERNAL_MODULE__collection_record_index_mjs__.CollectionRecord({
            data: {
                id: 1
            }
        });
        expect(record.data.id).toBe(1);
        record.setData({
            id: 2
        });
        expect(record.data.id).toBe(2);
        record.setParentRecord(new __WEBPACK_EXTERNAL_MODULE__collection_record_index_mjs__.CollectionRecord({
            data: {
                name: 'a'
            }
        }));
        expect(record.parentRecord.data.name).toBe('a');
    });
});
