Skip to content

Commit

Permalink
Update tests for linter
Browse files Browse the repository at this point in the history
  • Loading branch information
0xCaso committed Oct 21, 2022
1 parent 223fa42 commit ade822c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/utils/Strings.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,16 @@ contract('Strings', function (accounts) {

describe('compare', function () {
it('compares two equal strings', async function () {
expect(await this.strings.methods['compare(string,string)']('a', 'a')).to.be.true;
expect(await this.strings.methods['compare(string,string)']('a', 'a')).to.equal(true);
});

it('compares two different strings', async function () {
expect(await this.strings.methods['compare(string,string)']('a', 'b')).to.be.false;
expect(await this.strings.methods['compare(string,string)']('a', 'b')).to.equal(false);
});

it('compares two different strings of different lengths', async function () {
expect(await this.strings.methods['compare(string,string)']('a', 'aa')).to.be.false;
expect(await this.strings.methods['compare(string,string)']('aa', 'a')).to.be.false;
expect(await this.strings.methods['compare(string,string)']('a', 'aa')).to.equal(false);
expect(await this.strings.methods['compare(string,string)']('aa', 'a')).to.equal(false);
});
});
});

0 comments on commit ade822c

Please sign in to comment.