Skip to content

Commit 3cf2692

Browse files
committed
Update interperter tests for new naming of registerUndo
1 parent e8639fe commit 3cf2692

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Interpreter/SDK/Foundation_test.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ if #available(OSX 10.11, iOS 9.0, *) {
230230
var someProperty: String = ""
231231
}
232232
let f = ObjCClass()
233-
UM.registerUndoWithTarget(f) { target in
233+
UM.registerUndo(withTarget: f) { target in
234234
target.someProperty = "expected"
235235
}
236236
UM.undo()
@@ -245,7 +245,7 @@ if #available(OSX 10.11, iOS 9.0, *) {
245245
var someOtherProperty: String = ""
246246
}
247247
var b = SwiftClass()
248-
UM.registerUndoWithTarget(b) { target in
248+
UM.registerUndo(withTarget:b) { target in
249249
target.someOtherProperty = "expected"
250250
}
251251
UM.undo()

0 commit comments

Comments
 (0)