Skip to content

Commit

Permalink
add test for REPL with missing file an validation
Browse files Browse the repository at this point in the history
  • Loading branch information
fdodino committed Nov 12, 2023
1 parent 8d324cd commit 57e2f5a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/fullRepl.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,12 @@ describe('REPL integration test for invalid project', () => {
await expect(callRepl('fileWithValidationErrors.wlk', buildOptionsFor('validation-errors'))).to.eventually.be.rejectedWith(/exit with 1 error code/)
})

it('should return exit code 1 if file does not exist', async () => {
it('should return exit code 1 if file does not exist - no validation', async () => {
await expect(callRepl('noFile.wlk', buildOptionsFor('validation-errors', true))).to.eventually.be.rejectedWith(/exit with 1 error code/)
})

it('should return exit code 1 if file does not exist - with validation', async () => {
await expect(callRepl('noFile.wlk', buildOptionsFor('missing-files'))).to.eventually.be.rejectedWith(/exit with 1 error code/)
})

})

0 comments on commit 57e2f5a

Please sign in to comment.