Skip to content

Commit efc5e72

Browse files
author
Artem
committed
#RI-4454 fix ITests
1 parent c54616d commit efc5e72

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

redisinsight/api/test/api/analytics/analytics.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ import {
88
} from '../deps';
99
const { analytics } = deps;
1010

11-
1211
describe('Analytics', () => {
1312
requirements('rte.serverType=local');
1413

1514
it('APPLICATION_STARTED', () => {
16-
// if(serverConfig.get('server').buildType !== 'ELECTRON') {
17-
// return
18-
// }
15+
if(serverConfig.get('server').buildType !== 'ELECTRON') {
16+
return
17+
}
18+
1919
const appStarted = analytics.findEvent({
2020
event: 'APPLICATION_STARTED',
2121
})
@@ -27,7 +27,7 @@ describe('Analytics', () => {
2727
const found = appStarted || appFirstStarted;
2828

2929
if (!found) {
30-
fail('APPLICATION_STARTED or APPLICATION_FIRST_START events were not found');
30+
expect.fail('APPLICATION_STARTED or APPLICATION_FIRST_START events were not found');
3131
}
3232

3333
expect(found?.properties).to.have.all.keys('appVersion', 'osPlatform', 'buildType', 'controlNumber', 'controlGroup', 'port');

0 commit comments

Comments
 (0)