From 099c5721bb35ade7841463b62a1f1d274ed457c1 Mon Sep 17 00:00:00 2001 From: Thomas Hohn Date: Wed, 13 Nov 2024 16:36:38 +0100 Subject: [PATCH 1/4] [WIP] Bump express 4.19.2 to 4.21.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ad7d0c57b..75016e5df 100644 --- a/package.json +++ b/package.json @@ -142,7 +142,7 @@ "eslint-plugin-import": "2.30.0", "eslint-plugin-mocha": "10.5.0", "expect": "29.7.0", - "express": "4.19.2", + "express": "4.21.0", "graphql": "16.9.0", "husky": "9.1.6", "inquirer-test": "2.0.1", From a19699746d7c2c33f790c484d60b45c9a707cbae Mon Sep 17 00:00:00 2001 From: Thomas Hohn Date: Wed, 13 Nov 2024 16:58:42 +0100 Subject: [PATCH 2/4] Trigger Build From 51622b12349f35cb35fe6048d599e3dd7e745093 Mon Sep 17 00:00:00 2001 From: Thomas Hohn Date: Wed, 13 Nov 2024 17:36:59 +0100 Subject: [PATCH 3/4] Fix test --- test/rest/REST_test.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/rest/REST_test.js b/test/rest/REST_test.js index 458a5af5e..d3426c5d2 100644 --- a/test/rest/REST_test.js +++ b/test/rest/REST_test.js @@ -319,7 +319,7 @@ describe('REST - Form upload', () => { }) describe('upload file', () => { - it('should show error when file size exceedes the permit', async () => { + it('should show error when file size exceedes the permit', async (done) => { const form = new FormData() form.append('file', fs.createReadStream(testFile)) @@ -328,9 +328,10 @@ describe('REST - Form upload', () => { } catch (error) { error.message.should.eql('Request body larger than maxBodyLength limit') } + done(); }) - it('should not show error when file size doesnt exceedes the permit', async () => { + it('should not show error when file size doesnt exceedes the permit', async (done) => { const form = new FormData() form.append('file', fs.createReadStream(testFile)) @@ -340,6 +341,7 @@ describe('REST - Form upload', () => { } catch (error) { console.log(error.message) } + done(); }) }) }) From 69f0ab8530d195e3aa26fd67ea6e6f27cea181bd Mon Sep 17 00:00:00 2001 From: Thomas Hohn Date: Wed, 13 Nov 2024 18:03:27 +0100 Subject: [PATCH 4/4] Revert --- test/rest/REST_test.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/rest/REST_test.js b/test/rest/REST_test.js index d3426c5d2..458a5af5e 100644 --- a/test/rest/REST_test.js +++ b/test/rest/REST_test.js @@ -319,7 +319,7 @@ describe('REST - Form upload', () => { }) describe('upload file', () => { - it('should show error when file size exceedes the permit', async (done) => { + it('should show error when file size exceedes the permit', async () => { const form = new FormData() form.append('file', fs.createReadStream(testFile)) @@ -328,10 +328,9 @@ describe('REST - Form upload', () => { } catch (error) { error.message.should.eql('Request body larger than maxBodyLength limit') } - done(); }) - it('should not show error when file size doesnt exceedes the permit', async (done) => { + it('should not show error when file size doesnt exceedes the permit', async () => { const form = new FormData() form.append('file', fs.createReadStream(testFile)) @@ -341,7 +340,6 @@ describe('REST - Form upload', () => { } catch (error) { console.log(error.message) } - done(); }) }) })