Skip to content

Commit fea9ca4

Browse files
Merge pull request #141 from prateek0411999/developer_branch
Developer branch
2 parents 5cfd654 + ec3345f commit fea9ca4

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
workflow_dispatch:
66

77
env:
8-
PACT_BROKER_BASE_URL: ${{ secrets.PACT_BROKER_BASE_URL }}
8+
PACT_BROKER_BASE_URL: https://prateek.pactflow.io
99
PACT_PROVIDER: pactflow-example-provider
1010
PACT_BROKER_TOKEN: ${{ secrets.PACTFLOW_TOKEN_FOR_CI_CD_WORKSHOP }}
1111
REACT_APP_API_BASE_URL: http://localhost:3001

src/api.pact.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ describe('API Pact test', () => {
1919
const expectedProduct = {
2020
id: '10',
2121
type: 'CREDIT_CARD',
22-
name: '28 Degrees'
22+
name: '28 Degrees',
23+
date: "11/02/2024"
2324
};
2425

2526
// Uncomment to see this fail

src/product.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
export class Product {
2-
constructor({id, name, type}) {
2+
constructor({id, name, type, date}) {
33
this.id = id
44
this.name = name
55
this.type = type
6+
this.date = date
67
}
78
}

0 commit comments

Comments
 (0)