Skip to content

Commit

Permalink
remove partition return type from functions, get rid of unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Gunnarsson committed Feb 8, 2023
1 parent b784a2e commit cbb1ad4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions integration-tests/tests/src/tests/sync/sync-session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function getSyncConfiguration(user: Realm.User, partition: any): Realm.Configura
async function getSyncConfWithUser(app: Realm.App, partition: any) {
const user = await app.logIn(Realm.Credentials.anonymous());
const config = getSyncConfiguration(user, partition);
return { user, partition, config };
return { user, config };
}

function createObjects(user: Realm.User, partition: string): Promise<Realm> {
Expand Down Expand Up @@ -176,7 +176,7 @@ describe("SessionTest", () => {

it("config with onMigration and sync set", async function (this: AppContext) {
const partition = generatePartition();
const { user, config } = await getSyncConfWithUser(this.app, partition);
const { config } = await getSyncConfWithUser(this.app, partition);
config.onMigration = () => {
/* empty function */
};
Expand All @@ -193,7 +193,7 @@ describe("SessionTest", () => {
it("invalid sync user object", async function (this: AppContext) {
// test if an invalid object is used as user
const partition = generatePartition();
const { user, config } = await getSyncConfWithUser(this.app, partition);
const { config } = await getSyncConfWithUser(this.app, partition);
//@ts-expect-error setting an invalid user object
config.sync.user = { username: "John Doe" };
try {
Expand Down

0 comments on commit cbb1ad4

Please sign in to comment.