Skip to content

Commit

Permalink
fix unit test and e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuadkitenge committed Apr 24, 2024
1 parent 81dd656 commit c7dbfe1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions cypress/e2e/with_mock_data/catalogueItems.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -926,8 +926,8 @@ describe('Catalogue Items', () => {
name: 'Energy Meters 26',
description: 'Precision energy meters for accurate measurements. 26',
properties: [
{ value: 1000, id: '7' },
{ value: '±0.5%', id: '8' },
{ value: 1000, id: '9' },
{ value: '±0.5%', id: '10' },
],
id: '89',
manufacturer_id: '1',
Expand All @@ -952,8 +952,8 @@ describe('Catalogue Items', () => {
name: 'Energy Meters 27',
description: 'Precision energy meters for accurate measurements. 27',
properties: [
{ value: 2000, id: '7' },
{ value: null, id: '8' },
{ value: 2000, id: '9' },
{ value: null, id: '10' },
],
id: '6',
manufacturer_id: '3',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,8 @@ describe('catalogue item directory Dialog', () => {
created_time: '2024-01-01T12:00:00.000+00:00',
modified_time: '2024-01-02T13:10:10.000+00:00',
properties: [
{ id: '7', value: 1000 },
{ id: '8', value: '±0.5%' },
{ id: '9', value: 1000 },
{ id: '10', value: '±0.5%' },
],
});
expect(axiosPostSpy).toHaveBeenCalledWith('/v1/catalogue-items', {
Expand All @@ -357,8 +357,8 @@ describe('catalogue item directory Dialog', () => {
created_time: '2024-01-01T12:00:00.000+00:00',
modified_time: '2024-01-02T13:10:10.000+00:00',
properties: [
{ id: '7', value: 2000 },
{ id: '8', value: null },
{ id: '9', value: 2000 },
{ id: '10', value: null },
],
});
});
Expand Down

0 comments on commit c7dbfe1

Please sign in to comment.