Skip to content

Commit

Permalink
Remove unused imports, fix API tests to match updates to the SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
kylewadebwell committed Aug 19, 2024
1 parent 86a302e commit 4c3cdab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions bwell-typescript-react/e2e/api/user-manager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe("User Manager", () => {

expect(updateProfileResult).toBeDefined();
expect(updateProfileResult.failure()).toBe(true);
expect(updateProfileResult.error().message).toBe('');
expect(updateProfileResult.error().message).toBe('Internal Server Error');
});
});

Expand All @@ -68,6 +68,7 @@ describe("Username/Password Authentication", () => {
it("Should fail with invalid username/password", async () => {
sdk = new BWellSDK({
clientKey: USERNAME_PASSWORD_KEY,
authType: AuthType.UsernamePassword,
});

await sdk.initialize();
Expand All @@ -79,6 +80,6 @@ describe("Username/Password Authentication", () => {

expect(authenticationResult).toBeDefined();
expect(authenticationResult.failure()).toBe(true);
expect(authenticationResult.error().message).toBe('Invalid username or password');
expect(authenticationResult.error().message).toBe('Unknown error');
});
});
1 change: 0 additions & 1 deletion bwell-typescript-react/src/store/userSlice.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { createSlice, createAsyncThunk } from "@reduxjs/toolkit";
import { authenticateSdk, initializeSdk } from "@/sdk/bWellSdk";
import { BWellSDK } from "@icanbwell/bwell-sdk-ts";

interface UserState {
clientKey?: string;
Expand Down

0 comments on commit 4c3cdab

Please sign in to comment.