mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Ignores branch/version in snapshot
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
This commit is contained in:
parent
6e98fcd3f3
commit
8c4e2f42e5
1 changed files with 14 additions and 4 deletions
|
@ -22,16 +22,26 @@ describe('AnalyticsService', () => {
|
|||
expect(analyticsClientMock.registerContextProvider).toHaveBeenCalledTimes(1);
|
||||
await expect(
|
||||
await firstValueFrom(analyticsClientMock.registerContextProvider.mock.calls[0][0].context$)
|
||||
).toMatchInlineSnapshot(`
|
||||
).toMatchInlineSnapshot(
|
||||
{
|
||||
branch: expect.any(String),
|
||||
buildNum: 9007199254740991,
|
||||
buildSha: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
||||
isDev: true,
|
||||
isDistributable: false,
|
||||
version: expect.any(String),
|
||||
},
|
||||
`
|
||||
Object {
|
||||
"branch": "main",
|
||||
"branch": Any<String>,
|
||||
"buildNum": 9007199254740991,
|
||||
"buildSha": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
|
||||
"isDev": true,
|
||||
"isDistributable": false,
|
||||
"version": "8.5.0",
|
||||
"version": Any<String>,
|
||||
}
|
||||
`);
|
||||
`
|
||||
);
|
||||
});
|
||||
|
||||
test('should register the `performance_metric` event type on creation', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue