change notification name to change

This commit is contained in:
Ari Lazier 2015-10-26 16:19:12 -07:00
parent 246ccc7bde
commit 6f57500972
2 changed files with 3 additions and 3 deletions

View File

@ -33,10 +33,10 @@ using namespace realm;
class RJSRealmDelegate : public RealmDelegate { class RJSRealmDelegate : public RealmDelegate {
public: public:
virtual void changes_available() { virtual void changes_available() {
notify("RefreshRequiredNotification"); assert(0);
} }
virtual void did_change(std::vector<ObserverState> const& observers, std::vector<void*> const& invalidated) { virtual void did_change(std::vector<ObserverState> const& observers, std::vector<void*> const& invalidated) {
notify("DidChangeNotification"); notify("change");
} }
virtual std::vector<ObserverState> get_observed_rows() { virtual std::vector<ObserverState> get_observed_rows() {
return std::vector<ObserverState>(); return std::vector<ObserverState>();

View File

@ -290,7 +290,7 @@ module.exports = BaseTest.extend({
TestCase.assertEqual(notificationCount, 0); TestCase.assertEqual(notificationCount, 0);
realm.write(function() {}); realm.write(function() {});
TestCase.assertEqual(notificationCount, 1); TestCase.assertEqual(notificationCount, 1);
TestCase.assertEqual(notificationName, 'DidChangeNotification'); TestCase.assertEqual(notificationName, 'change');
var secondNotificationCount = 0; var secondNotificationCount = 0;
function secondNotification(realm, name) { function secondNotification(realm, name) {