Skip to content

Commit

Permalink
fix: jest api.spec.js test fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanJG01 committed Oct 14, 2023
1 parent 5e4c9f2 commit 7db15af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions cypress/fixtures/tree186734.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@
"age":null,"created_at":"2022-01-25T12:06:36.000Z",
"updated_at":"2022-01-25T12:06:36.000Z",
"estimated_geographic_location":"0101000020E61000005E0A2435A8682AC0CDBB02E82FDC2040",
"status":"active","attributes":null,"species_id":null,
"planter_id":940
"status":"active",
"attributes":null,
"species_id":null,
"planter_id":940,
"name":"The Best Tree"

}


Expand Down
2 changes: 1 addition & 1 deletion src/models/api.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('getOrganizationById', () => {

describe('getTreeById', () => {
it('should get tree by id', async () => {
const id = 1;
const id = 'da4d3ed8-8655-44c5-a7ba-d4c45a0dfb10';
const tree = await getTreeById(id);
expect(tree).toBeDefined();
expect(tree.name).toBeDefined();
Expand Down

0 comments on commit 7db15af

Please sign in to comment.