From ae5515269b67afd3bbfced34ea3a73f68180cd51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jegors=20=C4=8Cemisovs?= Date: Tue, 16 Apr 2024 16:41:15 +0300 Subject: [PATCH] Refactor Armstrong number tests and API test naming The unnecessary assertion block in the Armstrong number tests has been removed. This clarification ensures cleaner test files for readability. Also, renaming of Bruno API test to a more general "API Tests" is made in the workflow file to accommodate potential additional tests in the future. --- .github/workflows/api-tests-bruno.yaml | 4 ++-- .../A seven digit number that is an Armstrong number.bru | 1 - .../A seven digit number that is not an Armstrong number.bru | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/api-tests-bruno.yaml b/.github/workflows/api-tests-bruno.yaml index 351cbd6..18cd082 100644 --- a/.github/workflows/api-tests-bruno.yaml +++ b/.github/workflows/api-tests-bruno.yaml @@ -1,6 +1,6 @@ # This workflow runs the API tests for the bruno application on the latest version of Ubuntu -name: API Tests - Bruno +name: API Tests - All on: workflow_dispatch: @@ -10,7 +10,7 @@ permissions: checks: write jobs: run_bruno_api_test: - name: API Tests by Bruno + name: API Tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/exercism-api-tests/Armstrong Numbers/A seven digit number that is an Armstrong number.bru b/exercism-api-tests/Armstrong Numbers/A seven digit number that is an Armstrong number.bru index 33bfc30..f7f8441 100644 --- a/exercism-api-tests/Armstrong Numbers/A seven digit number that is an Armstrong number.bru +++ b/exercism-api-tests/Armstrong Numbers/A seven digit number that is an Armstrong number.bru @@ -14,7 +14,6 @@ query { number: 9926315 } -assert { assert { res.status: eq 200 res.headers['content-type']: contains application/json diff --git a/exercism-api-tests/Armstrong Numbers/A seven digit number that is not an Armstrong number.bru b/exercism-api-tests/Armstrong Numbers/A seven digit number that is not an Armstrong number.bru index a217f57..648ad73 100644 --- a/exercism-api-tests/Armstrong Numbers/A seven digit number that is not an Armstrong number.bru +++ b/exercism-api-tests/Armstrong Numbers/A seven digit number that is not an Armstrong number.bru @@ -14,7 +14,6 @@ query { number: 9926314 } -assert { assert { res.status: eq 200 res.headers['content-type']: contains application/json