Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
endel committed Oct 16, 2023
1 parent 00ab9e8 commit cfb7ddd
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions test/Schema.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1036,18 +1036,6 @@ describe("Schema Usage", () => {


describe("deep structures / re-assignents", () => {
it("should allow to assign complex structures on constructor", () => {
const arrayOfPlayers = new ArraySchema<Player>();
arrayOfPlayers.push(new Player("One", 1, 1));
arrayOfPlayers.push(new Player("Two", 2, 2));

const state = new State({ arrayOfPlayers, });
const decodedState = new State();
decodedState.decode(state.encodeAll());

assert.strictEqual(2, decodedState.arrayOfPlayers.length);
});

it("should allow re-assigning child schema type", () => {
const state = new DeepState();
const deepMap = new DeepMap();
Expand Down

0 comments on commit cfb7ddd

Please sign in to comment.