From b063d3ac48b8a9c37e9382479c7d057f168c7849 Mon Sep 17 00:00:00 2001 From: RealRichi3 Date: Sun, 26 Feb 2023 13:01:31 +0100 Subject: [PATCH 1/2] update test doc for /verifyemail test - auth.test.js --- API/src/test/auth.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/API/src/test/auth.test.js b/API/src/test/auth.test.js index c69c87f8..b458eb6b 100644 --- a/API/src/test/auth.test.js +++ b/API/src/test/auth.test.js @@ -422,9 +422,9 @@ describe('User Authentication for Signup, Email verification, login and password } }) - it('should return status code 400 for wrong auth token in request params', async () => { + it('should return status code 401 for wrong auth token in request params', async () => { /* - Should return 400 for wrong auth token in request params + Should return 401 for wrong auth token in request params - check statuscode - check message property in response body From cff601d86d0cdd8525a8a467cf1783f354c4ed1a Mon Sep 17 00:00:00 2001 From: Richie Date: Mon, 27 Feb 2023 13:07:31 +0100 Subject: [PATCH 2/2] update workflow --- .github/workflows/automated_tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/automated_tests.yml b/.github/workflows/automated_tests.yml index 91ebf77c..1b31fd2f 100644 --- a/.github/workflows/automated_tests.yml +++ b/.github/workflows/automated_tests.yml @@ -23,11 +23,12 @@ jobs: run: | cd ./API/src touch ./.env.test - pwd - ls -lf echo $GITHUB_ENV_TEST base64 --decode ./.env.test cat .env.test pwd + printf "${{ secrets.ENV_TEST}}" >> ./.env.test + + - run: printf "${{ secrets.ENV_TEST}}" >> ./.env.test - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 @@ -35,7 +36,6 @@ jobs: node-version: ${{ matrix.node-version }} - run: | cd ./API/src - cat ./.env.test pwd npm install npm run test