Skip to content

Commit

Permalink
fix: syntax error on e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dbale-altoros committed Jul 27, 2023
1 parent bb8fe35 commit d674d53
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .solhint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "solhint:recommended",
"plugins": [],
"rules": {
"compiler-version": ["off", "^0.8.17"],
"const-name-snakecase": "warn",
"var-name-mixedcase": "warn",
"immutable-vars-naming": ["warn", { "immutablesAsConstants": true }],
"func-visibility": ["error", { "ignoreConstructors": true }]
}
}
1 change: 0 additions & 1 deletion e2e/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ describe('e2e', function () {

it('should display [warnings exceeded] for max 3 warnings and exit error 1', function () {
const { code, stdout } = shell.exec('solhint contracts/Foo.sol --max-warnings 3')
const { code, stdout } = shell.exec('solhint contracts/Foo.sol --max-warnings 3')

expect(code).to.equal(1)
expect(stdout.trim()).to.contain(warningExceededMsg)
Expand Down

0 comments on commit d674d53

Please sign in to comment.