()
| 34 | import { isFunboxActiveWithProperty } from "../funbox/active"; |
| 35 | |
| 36 | export function buildEventLog(): EventLog { |
| 37 | const context = { |
| 38 | targetWords: [...TestWords.words.list], |
| 39 | mode: Config.mode, |
| 40 | mode2: getMode2(Config, getCurrentQuote()), |
| 41 | koreanStatus: koreanStatus, |
| 42 | bailedOut: bailedOut, |
| 43 | ...(Config.mode === "custom" && { |
| 44 | customTextLimitMode: CustomText.getLimit().mode, |
| 45 | customTextLimitValue: CustomText.getLimit().value, |
| 46 | }), |
| 47 | ...(Config.funbox.length !== 0 && { |
| 48 | isFunboxWithNospacePropertyActive: isFunboxActiveWithProperty("nospace"), |
| 49 | }), |
| 50 | }; |
| 51 | |
| 52 | return { |
| 53 | version: EVENT_LOG_VERSION, |
| 54 | events: getAllTestEvents(), |
| 55 | context, |
| 56 | }; |
| 57 | } |
| 58 | |
| 59 | let keydownEvents: KeydownEvent[] = []; |
| 60 | let keyupEvents: KeyupEvent[] = []; |
no test coverage detected