Skip to content

Commit

Permalink
chore: fix react
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Aug 20, 2022
1 parent 0b759e3 commit 21c6170
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion consumer/src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class API {
}

async getProduct(id) {
return axios.get(this.withPath("/product/" + id))
return axios.get(this.withPath("/products/" + id))
.then(r => r.data);
}
}
Expand Down
2 changes: 1 addition & 1 deletion consumer/src/api.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe("API", () => {
"version": "v1"
};
nock(API.url)
.get('/product/50')
.get('/products/50')
.reply(200, product, {'Access-Control-Allow-Origin': '*'});
const respProduct = await API.getProduct("50");
expect(respProduct).toEqual(product);
Expand Down

0 comments on commit 21c6170

Please sign in to comment.