mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-11 06:46:03 +00:00
Merge branch 'al-sync-user-tests' of https://github.com/realm/realm-js into al-sync-user-tests
This commit is contained in:
commit
a53e802df3
@ -458,6 +458,8 @@ void RealmClass<T>::clear_test_state(ContextType ctx, ObjectType this_object, si
|
||||
for(auto &user : SyncManager::shared().all_users()) {
|
||||
user->log_out();
|
||||
}
|
||||
SyncManager::shared().reset_for_testing();
|
||||
SyncManager::shared().configure_file_system(default_realm_file_directory(), SyncManager::MetadataMode::NoEncryption);
|
||||
#endif
|
||||
delete_all_realms();
|
||||
}
|
||||
|
@ -27,13 +27,7 @@ const userTests = require('../js/user-tests');
|
||||
describe('SyncTests', () => {
|
||||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 30000;
|
||||
beforeEach(() => Realm.clearTestState());
|
||||
afterEach(() => {
|
||||
Realm.clearTestState();
|
||||
let users = Realm.Sync.User.all;
|
||||
Object.keys(users).forEach((identity) => {
|
||||
users[identity].logout();
|
||||
});
|
||||
});
|
||||
afterEach(() => Realm.clearTestState());
|
||||
|
||||
for (const testName in userTests) {
|
||||
it(testName, (done) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user