From 6f57500972a7cdf09afb5743afb3d05a1af19db1 Mon Sep 17 00:00:00 2001 From: Ari Lazier Date: Mon, 26 Oct 2015 16:19:12 -0700 Subject: [PATCH] change notification name to change --- src/RJSRealm.mm | 4 ++-- tests/RealmTests.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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) {