Skip to content

Commit

Permalink
test: adjust lastVisitedPage input data (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
goga-m authored Mar 12, 2024
1 parent 83d82e5 commit 47a2dae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/profiles/source/environment.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ describe("Environment", ({ beforeEach, it, assert, nock, loader }) => {
profile.settings().set("ADVANCED_MODE", false);

// Create a Setting
profile.settings().set(ProfileSetting.LastVisitedPage, { name: "test", data: { foo: "bar" } });
profile.settings().set(ProfileSetting.LastVisitedPage, { path: "test", data: { foo: "bar" } });

// Encode all data
await context.subject.profiles().persist(profile);
Expand Down Expand Up @@ -223,7 +223,7 @@ describe("Environment", ({ beforeEach, it, assert, nock, loader }) => {
USE_EXPANDED_TABLES: false,
USE_NETWORK_WALLET_NAMES: false,
USE_TEST_NETWORKS: false,
LAST_VISITED_PAGE: { name: "test", data: { foo: "bar" } },
LAST_VISITED_PAGE: { path: "test", data: { foo: "bar" } },
});
});

Expand Down
2 changes: 1 addition & 1 deletion packages/profiles/source/profile.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe("Profile", ({ beforeEach, it, assert, loader, stub, nock }) => {

it("should have a last visited page", (context) => {
const lastVisitedPage = {
name: "test",
path: "/test",
data: { foo: "bar" },
};

Expand Down
2 changes: 1 addition & 1 deletion packages/profiles/source/profile.validator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ describe("ProfileValidator", ({ loader, it, assert, nock, beforeEach }) => {
[ProfileSetting.UseExpandedTables]: false,
[ProfileSetting.UseNetworkWalletNames]: false,
[ProfileSetting.UseTestNetworks]: false,
[ProfileSetting.LastVisitedPage]: { name: "test", data: { foo: "bar" } },
[ProfileSetting.LastVisitedPage]: { path: "test", data: { foo: "bar" } },
[ProfileSetting.Sessions]: { 1: { name: "test", data: { foo: "bar" } } },
},
wallets: {},
Expand Down

0 comments on commit 47a2dae

Please sign in to comment.