Skip to content

Commit

Permalink
fix: add description to file rename tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paulschreiber committed Mar 27, 2024
1 parent 5a352b1 commit 7f2a3b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/landscape/components/LandscapeView.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ test('LandscapeView: Update Shared Data', async () => {
id: `de-3`,
createdAt: '2022-05-20T16:25:21.536679+00:00',
name: `Data Entry 3 updated`,
description: 'Description 3',
createdBy: { id: 'user-id', firstName: 'First', lastName: 'Last' },
size: 3456,
entryType: 'FILE',
Expand All @@ -284,6 +285,7 @@ test('LandscapeView: Update Shared Data', async () => {
input: {
id: 'de-3',
name: 'Data Entry 3 revised',
description: 'Description 3'

Check failure on line 288 in src/landscape/components/LandscapeView.test.js

View workflow job for this annotation

GitHub Actions / lint

Insert `,`
},
})
)
Expand All @@ -294,6 +296,7 @@ test('LandscapeView: Update Shared Data', async () => {
id: `de-3`,
createdAt: '2022-05-20T16:25:21.536679+00:00',
name: `Data Entry 3 revised`,
description: 'Description 3',
createdBy: { id: 'user-id', firstName: 'First', lastName: 'Last' },
size: 3456,
entryType: 'FILE',
Expand Down Expand Up @@ -373,7 +376,7 @@ test('LandscapeView: Update Shared Data', async () => {
);
expect(terrasoApi.requestGraphQL).toHaveBeenCalledWith(
expect.stringContaining('mutation updateSharedData'),
{ input: { id: 'de-3', name: 'Data Entry 3 revised' } }
{ input: { id: 'de-3', name: 'Data Entry 3 revised', description: 'Description 3' } }

Check failure on line 379 in src/landscape/components/LandscapeView.test.js

View workflow job for this annotation

GitHub Actions / lint

Replace `·input:·{·id:·'de-3',·name:·'Data·Entry·3·revised',·description:·'Description·3'·}` with `⏎······input:·{⏎········id:·'de-3',⏎········name:·'Data·Entry·3·revised',⏎········description:·'Description·3',⏎······},⏎···`
);
});

Expand Down

0 comments on commit 7f2a3b1

Please sign in to comment.