Add tests for improved coverage (#3448)

Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
This commit is contained in:
Hadrien Croubois
2022-06-03 01:01:55 +02:00
committed by GitHub
parent 04204b8fb9
commit 35090c1bf1
9 changed files with 81 additions and 69 deletions

View File

@ -25,5 +25,9 @@ contract('Strings', function () {
const input = web3.utils.asciiToHex(TEST_MESSAGE);
expect(await this.base64.encode(input)).to.equal('dGVzdDEy');
});
it('empty bytes', async function () {
expect(await this.base64.encode([])).to.equal('');
});
});
});