Skip to content

Commit

Permalink
fix(aa-alchemy): fix a test that was dependent on the current version
Browse files Browse the repository at this point in the history
  • Loading branch information
moldy530 committed Feb 2, 2024
1 parent bee152b commit d4e4a8f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions packages/alchemy/src/client/lightAccountClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,17 @@ describe("Light Account Client Tests", () => {
it("should have a JWT property", async () => {
const spy = vi.spyOn(AACoreModule, "createBundlerClient");
await givenConnectedProvider({ owner, chain });
expect(spy.mock.results[0].value.transport).toMatchInlineSnapshot(`
expect(spy.mock.results[0].value.transport).toMatchInlineSnapshot(
{
fetchOptions: {
headers: { "Alchemy-AA-Sdk-Version": expect.any(String) },
},
},
`
{
"fetchOptions": {
"headers": {
"Alchemy-AA-Sdk-Version": "3.0.0-alpha.1",
"Alchemy-AA-Sdk-Version": Any<String>,
"Authorization": "Bearer test",
},
},
Expand All @@ -37,7 +43,8 @@ describe("Light Account Client Tests", () => {
"type": "http",
"url": "https://polygon-mumbai.g.alchemy.com/v2/",
}
`);
`
);
});

it("should correctly encode batch transaction data", async () => {
Expand Down

0 comments on commit d4e4a8f

Please sign in to comment.