mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-10 14:25:58 +00:00
1f030a0618
These changes include timeouts when waiting on notifications.
23 lines
405 B
JavaScript
23 lines
405 B
JavaScript
/* Copyright 2015 Realm Inc - All Rights Reserved
|
|
* Proprietary and Confidential
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
var Realm = require('realm');
|
|
|
|
var prototype = exports.prototype = {};
|
|
|
|
exports.extend = function(object) {
|
|
object.__proto__ = prototype;
|
|
return object;
|
|
};
|
|
|
|
Object.defineProperties(prototype, {
|
|
afterEach: {
|
|
value: function() {
|
|
Realm.clearTestState();
|
|
}
|
|
}
|
|
});
|