Skip to content

Commit 0f14939

Browse files
committed
PR Review changes:
- Documentation update - Test case documentation update
1 parent d21d39e commit 0f14939

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/ContractInteract/TokenHolder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ class TokenHolder {
198198
*
199199
* @param {string} sessionKey Authorized session key address.
200200
*
201-
* @return {Promise<Object>} Promise that resolves current GnosisSafe nonce.
201+
* @return {Promise<Object>} Promise that resolves session data for valid session key.
202202
*/
203203
getSessionKeyData(sessionKey) {
204204
if (!Web3.utils.isAddress(sessionKey)) {

test/unit/TokenHolder/getRevokeSessionExecutableData.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describe('TokenHolder.getAuthorizeSessionWithExecutableData()', () => {
3434
Spy.assert(revokeSessionSpy, 1, [[sessionKey]]);
3535
});
3636

37-
it('should throw an error when to address is undefined', async () => {
37+
it('should throw an error when sessoinKey address is undefined', async () => {
3838
const sessionKey = undefined;
3939
await AssertAsync.reject(tokenHolder.getSessionKeyData(sessionKey), `Invalid sessionKey address: undefined.`);
4040
});

test/unit/TokenHolder/getSessionKeyData.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describe('TokenHolder.getSessionKeyData()', () => {
3434
Spy.assert(sessionKeyDataSpy, 1, [[sessionKey]]);
3535
});
3636

37-
it('should throw an error when to address is undefined', async () => {
37+
it('should throw an error when sessoinKey address is undefined', async () => {
3838
const sessionKey = undefined;
3939
await AssertAsync.reject(tokenHolder.getSessionKeyData(sessionKey), `Invalid sessionKey address: undefined.`);
4040
});

0 commit comments

Comments
 (0)