From 926cfbee3ed8663a114bc8c5130487da32399122 Mon Sep 17 00:00:00 2001 From: markusoliverannuk <149253918+markusoliverannuk@users.noreply.github.com> Date: Mon, 26 Feb 2024 21:27:04 +0200 Subject: [PATCH 1/2] updating count response in routes seemed logical --- web/routes/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/routes/index.js b/web/routes/index.js index 18616cc..f7d65bb 100644 --- a/web/routes/index.js +++ b/web/routes/index.js @@ -12,7 +12,7 @@ router.get('/ice-flakes', function (req, res, next) { .status(201) .json({ resource: 'ice-flakes', - count: 1005, + count: 2005, shape: 'rectangle' }) }) From 1836dd0c549b4bcc9fc9f792e849155fb663d41d Mon Sep 17 00:00:00 2001 From: markusoliverannuk <149253918+markusoliverannuk@users.noreply.github.com> Date: Mon, 26 Feb 2024 21:30:38 +0200 Subject: [PATCH 2/2] Update routes tests to match 2005 --- web/tests/routes.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/tests/routes.test.js b/web/tests/routes.test.js index 637724a..b3f1e73 100644 --- a/web/tests/routes.test.js +++ b/web/tests/routes.test.js @@ -15,7 +15,7 @@ describe('New Endpoint', () => { .get('/ice-flakes') expect(res.body).toEqual({ resource: 'ice-flakes', - count: 205, + count: 2005, shape: 'circle' }) expect(res.statusCode).toEqual(201)