Quick/Nimble notification userInfo testing
问题 I was looking at the notifications support in quick/nimble, e.g.: expect { NotificationCenter.default.postNotification(testNotification) }.to(postNotifications(equal([testNotification])) Is there a way to get my hands on the notification that is returned to inspect the userInfo? My goal is to invoke a method that posts a notification, and then inspect that notification userInfo and make sure that the key/value pairs are correct. Quick: 2.1.0 Nimble: 8.0.1 回答1: I ended up doing this: func