Skip to content

Commit

Permalink
test(models): amend generated models' stats
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Blaginov <[email protected]>
Signed-off-by: Stefan Blaginov <[email protected]>
  • Loading branch information
Stefan Blaginov authored and Stefan Blaginov committed Feb 1, 2024
1 parent c39e8de commit ecdbf8b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/common/benchmarkModelGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ describe('benchmarkModelGenerator', function () {
imports: []
});
expect(generated.metadata).toEqual({
generatedModelSizeInBytes: 3665,
generatedModelSizeInBytes: 3661,
humanReadableGeneratedModelSize: '3.58 KiB',
declarationsN: 5,
propertiesNInSmallestDeclaration: 5,
Expand Down Expand Up @@ -143,7 +143,7 @@ describe('benchmarkModelGenerator', function () {
expect(generated.metadata).toEqual({
requestedModelSizeInBytes: 10000,
humanReadableRequestedModelSize: '9.77 KiB',
generatedModelSizeInBytes: 9984,
generatedModelSizeInBytes: 9980,
humanReadableGeneratedModelSize: '9.75 KiB',
declarationsN: 14,
propertiesNInSmallestDeclaration: 5,
Expand Down Expand Up @@ -211,8 +211,8 @@ describe('benchmarkModelGenerator', function () {
expect(generated.metadata).toEqual({
requestedModelSizeInBytes: 10000,
humanReadableRequestedModelSize: '9.77 KiB',
generatedModelSizeInBytes: 9952,
humanReadableGeneratedModelSize: '9.72 KiB',
generatedModelSizeInBytes: 9948,
humanReadableGeneratedModelSize: '9.71 KiB',
declarationsN: 5,
propertiesNInSmallestDeclaration: 15,
propertiesNInLargestDeclaration: 16
Expand Down

0 comments on commit ecdbf8b

Please sign in to comment.