import {MetricsTable, MicroLessonInfoOx} from 'ox-core'; import {AppInfoOxService} from '../services/app-info-ox.service'; import {AnswerService} from '../services/answer.service'; import {EventEmitter} from '@angular/core'; import {FeedbackOxService} from '../services/feedback-ox.service'; import {MicroLessonLevelConfiguration} from '../../../../ox-core/src/lib/models/micro-lesson-info-ox'; export const mockMicroLessonConfiguration = { types: { value: 3, mode: 'challenges' }, exercisesToUpSubLevel: [2, 2, 2], } as any as MicroLessonLevelConfiguration; export const mockMicroLessonInfo = new MicroLessonInfoOx([mockMicroLessonConfiguration, mockMicroLessonConfiguration], 1, 3, '', [], undefined); export const appInfoSpy = (() => { const temp = jasmine.createSpyObj('AppInfoSpy', ['getMetricsTable']); // ['getMetricsTable', // 'getFirstMicroLessonInfo']); temp.microLessonInfo = mockMicroLessonInfo; // temp.getFirstMicroLessonInfo.and.returnValue(mockMicroLessonInfo); return temp; })(); export const answerServiceSpy = (() => { const temp = jasmine.createSpyObj>('AnswerServiceSpy', ['onTryAnswer']); temp.tryAnswer = new EventEmitter(); return temp; })(); export const feedBackServiceSpy = (() => { const temp: FeedbackOxService = jasmine.createSpyObj('FeedBackServiceSpy', ['doesntMatter']); temp.feedbackAnimation = new EventEmitter(); temp.endFeedback = new EventEmitter(); temp.surrenderEnd = new EventEmitter(); return temp; })();