Skip to content

Commit

Permalink
fix merge error
Browse files Browse the repository at this point in the history
  • Loading branch information
humdrum committed Jul 10, 2023
1 parent cdcc584 commit 775deae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/Unit/Document/JSONTextTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ final class JSONTextTest: XCTestCase {
try await doc.update { root in root.text = JSONText() }

await doc.subscribe(targetPath: "$.text") {
($0 as! ChangeEventable).value.forEach { changeInfo in
($0 as! ChangeEvent).value.forEach { changeInfo in
view.applyChanges(operations: changeInfo.operations)
}
}
Expand Down Expand Up @@ -143,7 +143,7 @@ final class JSONTextTest: XCTestCase {
try await doc.update { root in root.text = JSONText() }

await doc.subscribe(targetPath: "$.text") {
($0 as! ChangeEventable).value.forEach { changeInfo in
($0 as! ChangeEvent).value.forEach { changeInfo in
view.applyChanges(operations: changeInfo.operations)
}
}
Expand Down Expand Up @@ -180,7 +180,7 @@ final class JSONTextTest: XCTestCase {
try await doc.update { root in root.text = JSONText() }

await doc.subscribe(targetPath: "$.text") {
($0 as! ChangeEventable).value.forEach { changeInfo in
($0 as! ChangeEvent).value.forEach { changeInfo in
view.applyChanges(operations: changeInfo.operations)
}
}
Expand Down Expand Up @@ -216,7 +216,7 @@ final class JSONTextTest: XCTestCase {
}

await doc.subscribe(targetPath: "$.text") { event in
XCTAssertEqual((event as! ChangeEventable).value[0].operations[0] as! SelectOpInfo, SelectOpInfo(path: "$.text", from: 2, to: 4))
XCTAssertEqual((event as! ChangeEvent).value[0].operations[0] as! SelectOpInfo, SelectOpInfo(path: "$.text", from: 2, to: 4))
}

try await doc.update { root in (root.text as? JSONText)?.select(2, 4) }
Expand Down

0 comments on commit 775deae

Please sign in to comment.