Skip to content

Commit eda76f0

Browse files
updated pact to fail
1 parent 241c424 commit eda76f0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/api.pact.spec.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ describe('API Pact test', () => {
1616
describe('retrieving a product', () => {
1717
test('ID 10 exists', async () => {
1818
// Arrange
19-
const expectedProduct = {
20-
id: '10',
21-
type: 'CREDIT_CARD',
22-
name: '28 Degrees'
23-
};
19+
// const expectedProduct = {
20+
// id: '10',
21+
// type: 'CREDIT_CARD',
22+
// name: '28 Degrees'
23+
// };
2424

2525
// Uncomment to see this fail
26-
// const expectedProduct = { id: '10', type: 'CREDIT_CARD', name: '28 Degrees', price: 30.0, newField: 22}
26+
const expectedProduct = { id: '10', type: 'CREDIT_CARD', name: '28 Degrees', price: 30.0, newField: 22}
2727

2828
mockProvider
2929
.given('a product with ID 10 exists')

0 commit comments

Comments
 (0)