change notification name to change
This commit is contained in:
parent
246ccc7bde
commit
6f57500972
|
@ -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<ObserverState> const& observers, std::vector<void*> const& invalidated) {
|
||||
notify("DidChangeNotification");
|
||||
notify("change");
|
||||
}
|
||||
virtual std::vector<ObserverState> get_observed_rows() {
|
||||
return std::vector<ObserverState>();
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue