Skip to content

Commit

Permalink
Fix linter in e2e/test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
fvictorio committed Oct 15, 2020
1 parent 1412fd5 commit 95f840f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions e2e/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-disable prefer-arrow-callback */
/* eslint-disable no-unused-expressions */

const {expect} = require('chai')
const { expect } = require('chai')
const cp = require('child_process')
const fs = require('fs-extra')
const getStream = require('get-stream')
Expand Down Expand Up @@ -31,13 +31,13 @@ describe('e2e', function() {
useFixture('01-no-config')

it('should fail', function() {
const {code} = shell.exec('solhint Foo.sol')
const { code } = shell.exec('solhint Foo.sol')

expect(code).to.equal(1)
})

it('should create an initial config with --init', function() {
const {code} = shell.exec('solhint --init')
const { code } = shell.exec('solhint --init')

expect(code).to.equal(0)

Expand All @@ -47,7 +47,7 @@ describe('e2e', function() {
})

it('should print usage if called without arguments', function() {
const {code, stdout} = shell.exec('solhint')
const { code, stdout } = shell.exec('solhint')

expect(code).to.equal(0)

Expand All @@ -61,15 +61,15 @@ describe('e2e', function() {
useFixture('02-empty-solhint-json')

it('should print nothing', function() {
const {code, stdout} = shell.exec('solhint Foo.sol')
const { code, stdout } = shell.exec('solhint Foo.sol')

expect(code).to.equal(0)

expect(stdout.trim()).to.equal('')
})

it('should show warning when using --init', function() {
const {code, stdout} = shell.exec('solhint --init')
const { code, stdout } = shell.exec('solhint --init')

expect(code).to.equal(0)

Expand All @@ -81,7 +81,7 @@ describe('e2e', function() {
useFixture('03-no-empty-blocks')

it('should exit with 1', function() {
const {code, stdout} = shell.exec('solhint Foo.sol')
const { code, stdout } = shell.exec('solhint Foo.sol')

expect(code).to.equal(1)

Expand Down

0 comments on commit 95f840f

Please sign in to comment.