Skip to content

Commit

Permalink
Fix macro expansion tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinrpb committed Nov 19, 2024
1 parent 51b23d0 commit 907dfae
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ final class ObservableDefaultMacroTests: XCTestCase {
var name: String {
get {
if objc_getAssociatedObject(self, &Self._objcAssociatedKey_name) == nil {
let cancellable = Defaults.publisher(.test)
let cancellable = Defaults.publisher(\#(keyExpression))
.sink { [weak self] in
self?.testValue = $0.newValue
self?.name = $0.newValue
}
objc_setAssociatedObject(self, &Self._objcAssociatedKey_name, cancellable, .OBJC_ASSOCIATION_RETAIN)
}
Expand Down

0 comments on commit 907dfae

Please sign in to comment.