Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
5 changed files
with
57 additions
and
7 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
...wplow/browser-tracker-core/feature-1195-round-width-x-height-values_2023-05-22-13-17.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@snowplow/browser-tracker-core", | ||
"comment": "Round dimension type values on payload", | ||
"type": "none" | ||
} | ||
], | ||
"packageName": "@snowplow/browser-tracker-core" | ||
} |
10 changes: 10 additions & 0 deletions
10
...ges/@snowplow/tracker-core/feature-1195-round-width-x-height-values_2023-05-22-13-17.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@snowplow/tracker-core", | ||
"comment": "Make addPayloadPair more lenient with 'uknown' type", | ||
"type": "none" | ||
} | ||
], | ||
"packageName": "@snowplow/tracker-core" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { floorDimensionFields } from '../src/helpers/browser_props'; | ||
|
||
describe('Browser props', () => { | ||
it('floorDimensionFields correctly floors dimension type values', () => { | ||
const testDimensions = '100x100'; | ||
expect(floorDimensionFields(testDimensions)).toEqual(testDimensions); | ||
}); | ||
|
||
it('floorDimensionFields correctly floors dimension type values with fractional numbers', () => { | ||
const testFractionalDimensions = '100.2x100.1'; | ||
expect(floorDimensionFields(testFractionalDimensions)).toEqual('100x100'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters