Skip to content

Commit

Permalink
Add test for use of asymmetric objects in local realms
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsenko committed Sep 18, 2023
1 parent 7e8fb74 commit 0a92004
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/asymmetric_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ Future<void> main([List<String>? args]) async {
await realm.syncSession.waitForUpload();
});

test("Asymmetric don't work local realms", () {
expect(() => Realm(Configuration.local([Asymmetric.schema, Embedded.schema, Symmetric.schema])),
throws<RealmException>("Asymmetric table 'Asymmetric' not allowed in a local Realm"));
});

// TODO
// Test that asymmetric objects are actually transferred to backend, once we have
// a mongoClient to query the backend with.
Expand Down

0 comments on commit 0a92004

Please sign in to comment.