mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
16 lines
774 B
JavaScript
16 lines
774 B
JavaScript
export function createTesting({ state: layerState, services, parts, source }) {
|
|
/** @returns {{historyKeys: string[], navigationVisitedKeys: string[], historyLength: number, navigationIndex: number, suppressedHistoryKey: string|null, pendingSelectionKey: string|null}} */
|
|
|
|
function _getAwarenessNavigationStateForTest() {
|
|
return {
|
|
historyKeys: layerState.navigationHistory.map(parts.subject.subjectKey),
|
|
navigationVisitedKeys: [...layerState.navigationVisited],
|
|
historyLength: layerState.navigationHistory.length,
|
|
navigationIndex: layerState.navigationIndex,
|
|
suppressedHistoryKey: layerState.suppressedHistoryKey,
|
|
pendingSelectionKey: layerState.pendingSelectionKey,
|
|
};
|
|
}
|
|
return { _getAwarenessNavigationStateForTest };
|
|
}
|