Skip to content

Commit

Permalink
test: update snippet for init
Browse files Browse the repository at this point in the history
Co-authored-by: Anderson Arboleya <anderson@arboleya.me>
  • Loading branch information
maschad and arboleya authored Aug 21, 2024
1 parent 648499c commit 3653b6c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion apps/docs-snippets/src/guide/wallets/connectors.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,13 @@ describe('connectors', () => {
// #region fuel-instantiation-1
// #import { Fuel };

const sdk = await new Fuel().init();
const sdk = new Fuel();

/*
Awaits for initialization to mitigate potential race conditions
derived from the async nature of instantiating a connector.
*/
await sdk.init();

Check failure on line 153 in apps/docs-snippets/src/guide/wallets/connectors.test.ts

View workflow job for this annotation

GitHub Actions / Lint

Trailing spaces not allowed
// #endregion fuel-instantiation-1

expect(sdk).toBeDefined();
Expand Down

0 comments on commit 3653b6c

Please sign in to comment.