From 532e68f00fecb79c5210859b7168f4c445395fc5 Mon Sep 17 00:00:00 2001 From: Prateek Sharma Date: Wed, 7 Aug 2024 14:51:04 +0530 Subject: [PATCH] Revert "Developer branch" --- .github/workflows/build.yml | 2 +- src/api.pact.spec.js | 3 +-- src/product.js | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index da6bf2415..5e6d1332d 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 98aab66df..a460c5e3a 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 fe453812f..f751edf27 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