Skip to content

Commit a9baffa

Browse files
committed
up
1 parent 7d59b68 commit a9baffa

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

lib/event_processor/batch_event_processor.react_native.spec.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
import { vi, describe, it, expect, beforeEach } from 'vitest';
17+
import { beforeEach, describe, expect, it, vi } from 'vitest';
1818

1919
const mockNetInfo = vi.hoisted(() => {
2020
const netInfo = {
@@ -45,16 +45,14 @@ vi.mock('@react-native-community/netinfo', () => {
4545
};
4646
});
4747

48-
import { ReactNativeNetInfoEventProcessor } from './batch_event_processor.react_native';
49-
import { getMockRepeater } from '../tests/mock/mock_repeater';
5048
import { getMockAsyncCache } from '../tests/mock/mock_cache';
49+
import { getMockRepeater } from '../tests/mock/mock_repeater';
50+
import { ReactNativeNetInfoEventProcessor } from './batch_event_processor.react_native';
5151

52+
import { createImpressionEvent } from '../tests/mock/create_event';
5253
import { EventWithId } from './batch_event_processor';
5354
import { buildLogEvent } from './event_builder/log_event';
54-
import { createImpressionEvent } from '../tests/mock/create_event';
5555
import { ProcessableEvent } from './event_processor';
56-
import { wait } from '../tests/testUtils';
57-
import { mock } from 'node:test';
5856

5957
const getMockDispatcher = () => {
6058
return {

lib/event_processor/event_store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export class EventStore extends AsyncStoreWithBatchedGet<EventWithId> implements
9494
// diverge from the actual stored key list. But the in memory set needs
9595
// to be updated before the store set to limit the eventCount
9696
// when concurrent set are present. Even if the store set fails, it will
97-
// still keep the stored event cound below maxSize (it will underfill the store).
97+
// still keep the stored event count below maxSize (it will underfill the store).
9898
// next getKeys() should fix the discrepency.
9999
this.keys?.add(key);
100100
return this.store.set(key, { ...event, expiresAt: Date.now() + this.ttl });

0 commit comments

Comments
 (0)