From 57e2f5a8d5a70ce01e9cb06a97ebe18cf8bcfcb8 Mon Sep 17 00:00:00 2001 From: Fernando Dodino Date: Sun, 12 Nov 2023 13:07:54 -0300 Subject: [PATCH] add test for REPL with missing file an validation --- test/fullRepl.test.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/fullRepl.test.ts b/test/fullRepl.test.ts index 5a0ca19..fef3172 100644 --- a/test/fullRepl.test.ts +++ b/test/fullRepl.test.ts @@ -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/) + }) + }) \ No newline at end of file