Skip to content

Commit fc93efb

Browse files
committed
Fix test case
1 parent d24e776 commit fc93efb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Tests/OpenGraphCompatibilityTests/Graph/GraphCompatibilityTests.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,10 @@ struct GraphCompatibilityTests {
7070
@Test
7171
func graphCallback() {
7272
let graph = Graph()
73-
Graph.setUpdateCallback(graph, callback: nil)
74-
Graph.setUpdateCallback(graph) {
73+
graph.onUpdate {
7574
print("Update")
7675
}
77-
Graph.setInvalidationCallback(graph, callback: nil)
78-
Graph.setInvalidationCallback(graph) { attr in
76+
graph.onInvalidation { attr in
7977
print("Invalidate \(attr)")
8078
}
8179
}

0 commit comments

Comments
 (0)