Skip to content

Commit db02c38

Browse files
committed
Fix
1 parent 272542b commit db02c38

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

packages/abstractions/src/serialization/parseNodeProxyFactory.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export abstract class ParseNodeProxyFactory implements ParseNodeFactory {
1919
* @param _onBefore the callback to invoke before the deserialization of any model object.
2020
* @param _onAfter the callback to invoke after the deserialization of any model object.
2121
*/
22-
protected constructor(
22+
constructor(
2323
private readonly _concrete: ParseNodeFactory,
2424
private readonly _onBefore: (value: Parsable) => void,
2525
private readonly _onAfter: (value: Parsable) => void,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/**
2+
* -------------------------------------------------------------------------------------------
3+
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.
4+
* See License in the project root for license information.
5+
* -------------------------------------------------------------------------------------------
6+
*/
7+
import { BackingStoreParseNodeFactory } from "../../../src/store";
8+
import { assert, describe, it } from "vitest";
9+
import { ParseNodeFactory } from "../../../src";
10+
11+
describe("BackingStoreParseNodeFactory", () => {
12+
describe("constructor", () => {
13+
it("Should create an instance of backing store factory", async () => {
14+
const fakeParseNodeFactory: ParseNodeFactory = {} as ParseNodeFactory;
15+
const backingStoreParseNodeFactory: BackingStoreParseNodeFactory = new BackingStoreParseNodeFactory(fakeParseNodeFactory);
16+
assert.isDefined(backingStoreParseNodeFactory);
17+
});
18+
});
19+
});

0 commit comments

Comments
 (0)