Skip to content

Commit

Permalink
Reimplement test with invalid configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
takameyer committed May 9, 2022
1 parent 224c9a4 commit 525a553
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions integration-tests/tests/src/tests/sync/flexible.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,19 +152,19 @@ describe.skipIf(environment.missingServer, "Flexible sync", function () {
}).to.throw("'partitionValue' cannot be specified when flexible sync is enabled");
});

// NOTE: This is not a compatible configuration anymore and will cause a typescript error
// it("accepts { flexible: false } and a partition value", function () {
// expect(() => {
// new Realm({
// sync: {
// _sessionStopPolicy: SessionStopPolicy.Immediately,
// flexible: false,
// user: this.user,
// partitionValue: "test",
// },
// });
// }).to.not.throw();
// });
it("accepts { flexible: false } and a partition value", function () {
expect(() => {
// NOTE: This is not a compatible configuration anymore and will cause a typescript error
new Realm({
sync: {
_sessionStopPolicy: SessionStopPolicy.Immediately,
flexible: false,
user: this.user,
partitionValue: "test",
},
} as any);
}).to.not.throw();
});

it("accepts { flexible: undefined } and a partition value", function () {
expect(() => {
Expand Down

0 comments on commit 525a553

Please sign in to comment.