Skip to content

Commit f345593

Browse files
Le-CaignecPierreJeanjacquot
authored andcommitted
refactor: improve readability by simplifying function call formatting in tests
1 parent 58f44e1 commit f345593

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

test/lib/e2e/IExecAccountModule.test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,8 @@ describe('account', () => {
6464
providerOptions: DEFAULT_PROVIDER_OPTIONS,
6565
},
6666
);
67-
const res = await iexec.account.checkBridgedBalance(
68-
getRandomAddress(),
69-
);
67+
const res =
68+
await iexec.account.checkBridgedBalance(getRandomAddress());
7069
expect(res.stake).toBeInstanceOf(BN);
7170
expect(res.locked).toBeInstanceOf(BN);
7271
});

test/lib/e2e/IExecEnsModule.test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,8 @@ describe('ens', () => {
113113
const workerpoolDomain =
114114
await iexecReadOnly.ens.getDefaultDomain(workerpoolAddress);
115115
expect(workerpoolDomain).toBe('pools.iexec.eth');
116-
const defaultDomain = await iexecReadOnly.ens.getDefaultDomain(
117-
getRandomAddress(),
118-
);
116+
const defaultDomain =
117+
await iexecReadOnly.ens.getDefaultDomain(getRandomAddress());
119118
expect(defaultDomain).toBe('users.iexec.eth');
120119
});
121120
});

0 commit comments

Comments
 (0)