Skip to content

Commit bb79861

Browse files
committed
Update test now mock manager is internal
1 parent c0f645e commit bb79861

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/api-client-core/spec/GadgetRecord.spec.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,10 @@ describe("GadgetRecord", () => {
5555
const product = new GadgetRecord<SampleBaseRecord>(productBaseRecord);
5656
expect(product.id).toEqual("123");
5757
expect(product.name).toEqual("A cool product");
58-
expect(product.modelManager).toBeUndefined();
5958
});
6059

6160
it("can be constructed with a base record and a model manager", () => {
62-
const product = new GadgetRecord<SampleBaseRecord>(productBaseRecord, mockModelManager);
63-
expect(product.modelManager).toEqual(mockModelManager);
61+
new GadgetRecord<SampleBaseRecord>(productBaseRecord, mockModelManager);
6462
});
6563

6664
it("should respond toJSON, which returns the inner __gadget.fields properties", () => {

0 commit comments

Comments
 (0)