|
14 | 14 | * limitations under the License. |
15 | 15 | */ |
16 | 16 | /* eslint-disable @typescript-eslint/no-explicit-any */ |
17 | | -import { describe, it, beforeEach, afterEach, expect, vi, Mocked } from 'vitest'; |
18 | | -import { sprintf } from '../utils/fns'; |
| 17 | +import { beforeEach, describe, expect, it, Mocked, vi } from 'vitest'; |
| 18 | +import { getForwardingEventProcessor } from '../event_processor/event_processor_factory'; |
19 | 19 | import { NOTIFICATION_TYPES } from '../notification_center/type'; |
20 | | -import OptimizelyUserContext from './'; |
21 | 20 | import Optimizely from '../optimizely'; |
22 | | -import testData from '../tests/test_data'; |
23 | | -import { EventDispatcher, NotificationCenter, OptimizelyDecideOption } from '../shared_types'; |
24 | | -import { getMockProjectConfigManager } from '../tests/mock/mock_project_config_manager'; |
25 | 21 | import { createProjectConfig } from '../project_config/project_config'; |
26 | | -import { getForwardingEventProcessor } from '../event_processor/event_processor_factory'; |
27 | | -import { FORCED_DECISION_NULL_RULE_KEY } from './index'; |
| 22 | +import { OptimizelyDecideOption } from '../shared_types'; |
28 | 23 | import { getMockLogger } from '../tests/mock/mock_logger'; |
| 24 | +import { getMockProjectConfigManager } from '../tests/mock/mock_project_config_manager'; |
| 25 | +import testData from '../tests/test_data'; |
| 26 | +import { sprintf } from '../utils/fns'; |
| 27 | +import OptimizelyUserContext from './'; |
29 | 28 |
|
30 | 29 | import { |
31 | 30 | USER_HAS_FORCED_DECISION_WITH_NO_RULE_SPECIFIED, |
32 | 31 | USER_HAS_FORCED_DECISION_WITH_NO_RULE_SPECIFIED_BUT_INVALID, |
33 | 32 | USER_HAS_FORCED_DECISION_WITH_RULE_SPECIFIED, |
34 | 33 | USER_HAS_FORCED_DECISION_WITH_RULE_SPECIFIED_BUT_INVALID, |
35 | 34 | } from '../core/decision_service'; |
36 | | -import { resolvablePromise } from '../utils/promise/resolvablePromise'; |
37 | 35 | import { LogEvent } from '../event_processor/event_dispatcher/event_dispatcher'; |
38 | 36 | import { DefaultNotificationCenter } from '../notification_center'; |
| 37 | +import { resolvablePromise } from '../utils/promise/resolvablePromise'; |
39 | 38 |
|
40 | 39 | const getMockEventDispatcher = () => { |
41 | 40 | const dispatcher = { |
@@ -915,7 +914,7 @@ describe('OptimizelyUserContext', () => { |
915 | 914 | expect(user.qualifiedSegments).toEqual(['a']); |
916 | 915 | }); |
917 | 916 |
|
918 | | - it('should return true for empty returned segements', async () => { |
| 917 | + it('should return true for empty returned segments', async () => { |
919 | 918 | const fakeOptimizely: any = { |
920 | 919 | fetchQualifiedSegments: vi.fn().mockResolvedValue([]), |
921 | 920 | }; |
|
0 commit comments