diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index da6bf241..5e6d1332 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,7 +5,7 @@ on: workflow_dispatch: env: - PACT_BROKER_BASE_URL: https://prateek.pactflow.io + PACT_BROKER_BASE_URL: ${{ secrets.PACT_BROKER_BASE_URL }} PACT_PROVIDER: pactflow-example-provider PACT_BROKER_TOKEN: ${{ secrets.PACTFLOW_TOKEN_FOR_CI_CD_WORKSHOP }} REACT_APP_API_BASE_URL: http://localhost:3001 diff --git a/src/api.pact.spec.js b/src/api.pact.spec.js index 98aab66d..a460c5e3 100644 --- a/src/api.pact.spec.js +++ b/src/api.pact.spec.js @@ -19,8 +19,7 @@ describe('API Pact test', () => { const expectedProduct = { id: '10', type: 'CREDIT_CARD', - name: '28 Degrees', - date: "11/02/2024" + name: '28 Degrees' }; // Uncomment to see this fail diff --git a/src/product.js b/src/product.js index fe453812..f751edf2 100644 --- a/src/product.js +++ b/src/product.js @@ -1,8 +1,7 @@ export class Product { - constructor({id, name, type, date}) { + constructor({id, name, type}) { this.id = id this.name = name this.type = type - this.date = date } } \ No newline at end of file