Skip to content

Commit

Permalink
Merge pull request #141 from prateek0411999/developer_branch
Browse files Browse the repository at this point in the history
Developer branch
  • Loading branch information
prateek0411999 authored Aug 7, 2024
2 parents 5cfd654 + ec3345f commit fea9ca4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
workflow_dispatch:

env:
PACT_BROKER_BASE_URL: ${{ secrets.PACT_BROKER_BASE_URL }}
PACT_BROKER_BASE_URL: https://prateek.pactflow.io
PACT_PROVIDER: pactflow-example-provider
PACT_BROKER_TOKEN: ${{ secrets.PACTFLOW_TOKEN_FOR_CI_CD_WORKSHOP }}
REACT_APP_API_BASE_URL: http://localhost:3001
Expand Down
3 changes: 2 additions & 1 deletion src/api.pact.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ describe('API Pact test', () => {
const expectedProduct = {
id: '10',
type: 'CREDIT_CARD',
name: '28 Degrees'
name: '28 Degrees',
date: "11/02/2024"
};

// Uncomment to see this fail
Expand Down
3 changes: 2 additions & 1 deletion src/product.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
export class Product {
constructor({id, name, type}) {
constructor({id, name, type, date}) {
this.id = id
this.name = name
this.type = type
this.date = date
}
}

0 comments on commit fea9ca4

Please sign in to comment.