All files / app/codeCharta/state/selectors/searchedNodes searchedNodes.selector.ts

100% Statements 6/6
100% Branches 0/0
100% Functions 1/1
100% Lines 6/6

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 962x 62x 62x 62x   62x 32x    
import { getNodesByGitignorePath } from "./getNodesByGitignorePath"
import { searchPatternSelector } from "../../store/dynamicSettings/searchPattern/searchPattern.selector"
import { accumulatedDataSelector } from "../accumulatedData/accumulatedData.selector"
import { createSelector } from "@ngrx/store"
 
export const searchedNodesSelector = createSelector(accumulatedDataSelector, searchPatternSelector, (accumulatedData, searchPattern) =>
    getNodesByGitignorePath(accumulatedData.unifiedMapNode, searchPattern)
)