Skip to content

Commit

Permalink
fix e2e v2
Browse files Browse the repository at this point in the history
  • Loading branch information
dbale-altoros committed May 11, 2024
1 parent d86157f commit 6fee287
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions e2e/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,17 @@ describe('e2e', function () {
const PATH = '03-no-empty-blocks'
const { PREFIX, SUFFIX } = prepareContext(PATH)

describe('No contracts to lint', function () {
describe.only('No contracts to lint', function () {
it('should fail with appropiate message', function () {
const { code, stderr } = shell.exec(`${NODE}solhint Foo.sol ${SUFFIX}`)
console.log('\n---------------------------------------------------------------------------------------------')
console.log('\ncommand: ', `${NODE}solhint Foo.sol ${SUFFIX}`)
shell.exec(`pwd`)
console.log('\n---------------------------------------------------------------------------------------------')

const { code, stderr } = shell.exec(`${NODE}solhint Foo.sol ${SUFFIX}`)
console.log('\ncode :>> ', code)
console.log('EXIT_CODES.BAD_OPTIONS :>> ', EXIT_CODES.BAD_OPTIONS)

expect(code).to.equal(EXIT_CODES.BAD_OPTIONS)
expect(stderr).to.include('No files to lint!')
})
Expand Down

0 comments on commit 6fee287

Please sign in to comment.