From 29959c055e148bb24a93dcd3ab21a4a38221e887 Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Thu, 4 Apr 2024 15:46:19 +0200 Subject: [PATCH] Missed a couple of changes for js-preserves2 --- packages/core/test/bag.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/test/bag.test.ts b/packages/core/test/bag.test.ts index 0d6a510..4b632e2 100644 --- a/packages/core/test/bag.test.ts +++ b/packages/core/test/bag.test.ts @@ -1,12 +1,12 @@ /// SPDX-License-Identifier: GPL-3.0-or-later /// SPDX-FileCopyrightText: Copyright © 2016-2024 Tony Garnock-Jones -import { KeyedSet } from '@preserves/core'; +import { GenericEmbedded, KeyedSet } from '@preserves/core'; import { Bag, ChangeDescription } from '../src/runtime/bag'; describe('bag', () => { it('should be initializable from a set', () => { - const b = new Bag(new KeyedSet(['a', 'b', 'c'])); + const b = new Bag(new KeyedSet(['a', 'b', 'c'])); expect(b.size).toBe(3); expect(b.get('a')).toBe(1); expect(b.get('z')).toBe(0); @@ -28,7 +28,7 @@ describe('bag', () => { }); it('should count down', () => { - const b = new Bag(new KeyedSet(['a'])); + const b = new Bag(new KeyedSet(['a'])); expect(b.change('a', 1)).toBe(ChangeDescription.PRESENT_TO_PRESENT); expect(b.change('a', -1)).toBe(ChangeDescription.PRESENT_TO_PRESENT); expect(b.size).toBe(1);