Skip to content

Commit

Permalink
Define window in aptos test
Browse files Browse the repository at this point in the history
  • Loading branch information
y3fers0n committed Aug 21, 2024
1 parent 86f133f commit a812b5e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/aptos/tests/AptosProvider.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ afterEach(() => {
aptos = new AptosProvider();
});

(global as any).window = {};

// Mock window
Object.assign(globalThis.window || {}, {
Object.assign(global.window, {
location: {
protocol: 'https',
hostname: 'trust',
Expand Down

0 comments on commit a812b5e

Please sign in to comment.