Skip to content

Commit

Permalink
Adjust incorrect tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Mar 10, 2021
1 parent cb6c79b commit cd87a82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ describe("EditorState", () => {
ist(state.facet(f).join(), "10,20")
let content2 = [f.of(1), f.of(2)]
let state2 = state.update({effects: comp.reconfigure(content2)}).state
ist(comp.get(state), content2)
ist(comp.get(state2), content2)
ist(state2.facet(f).join(), "1,2,20")
let state3 = state2.update({effects: comp.reconfigure(f.of(3))}).state
ist(state3.facet(f).join(), "3,20")
Expand Down Expand Up @@ -133,9 +133,9 @@ describe("EditorState", () => {
ist(state.facet(f).join(), "0,20")
state = state.update({effects: StateEffect.reconfigure.of(f.of(2))}).state
ist(state.facet(f).join(), "2")
ist(comp.get(state), undefined)
state = state.update({effects: StateEffect.reconfigure.of([init, f.of(2)])}).state
ist(state.facet(f).join(), "10,2")
ist(comp.get(state), undefined)
})

it("allows facets computed from fields", () => {
Expand Down

0 comments on commit cd87a82

Please sign in to comment.