Skip to content

Commit

Permalink
fix: rm storageSize from test of adminEntries
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoSilvestr committed Jan 30, 2024
1 parent c3a69f4 commit 166aca5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker/src/plugins/admin/__test__/entriesAdmin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ describe('search (admin)', async () => {
// fix date values for test
results.data[0].dateStart = 0;
results.data[0].dateEnd = 1;
// remove storageSize and freeStorageSize for test
delete results.data[0].storageSize;
delete results.data[0].freeStorageSize;
expect(results.data).toMatchInlineSnapshot(`
[
{
Expand All @@ -32,13 +35,11 @@ describe('search (admin)', async () => {
"count": 12,
"dateEnd": 1,
"dateStart": 0,
"freeStorageSize": 0,
"ns": "octochemdb.compounds",
"seq": 12,
"size": 219445,
"sources": "../docker/src/plugins/compounds/sync/utils/__tests__/data/compoundsIncrementalTest.sdf.gz",
"state": "updated",
"storageSize": 4096,
},
]
`);
Expand Down

0 comments on commit 166aca5

Please sign in to comment.