diff --git a/src/RJSRealm.mm b/src/RJSRealm.mm index 0ac77cd8..b999961b 100644 --- a/src/RJSRealm.mm +++ b/src/RJSRealm.mm @@ -33,10 +33,10 @@ using namespace realm; class RJSRealmDelegate : public RealmDelegate { public: virtual void changes_available() { - notify("RefreshRequiredNotification"); + assert(0); } virtual void did_change(std::vector const& observers, std::vector const& invalidated) { - notify("DidChangeNotification"); + notify("change"); } virtual std::vector get_observed_rows() { return std::vector(); diff --git a/tests/RealmTests.js b/tests/RealmTests.js index 258366c8..74f04135 100644 --- a/tests/RealmTests.js +++ b/tests/RealmTests.js @@ -290,7 +290,7 @@ module.exports = BaseTest.extend({ TestCase.assertEqual(notificationCount, 0); realm.write(function() {}); TestCase.assertEqual(notificationCount, 1); - TestCase.assertEqual(notificationName, 'DidChangeNotification'); + TestCase.assertEqual(notificationName, 'change'); var secondNotificationCount = 0; function secondNotification(realm, name) {