All files / app/codeCharta/ui/ribbonBar/searchPanel/searchBar/selectors isSearchPatternEmpty.selector.ts

100% Statements 6/6
100% Branches 3/3
100% Functions 1/1
100% Lines 4/4

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 75x 5x   12x   5x  
import { createSelector } from "@ngrx/store"
import { searchPatternSelector } from "../../../../../state/store/dynamicSettings/searchPattern/searchPattern.selector"
 
export const _isSearchPatternEmpty = (searchPattern: string) => searchPattern === "" || searchPattern === "!" || searchPattern === ","
 
export const isSearchPatternEmptySelector = createSelector(searchPatternSelector, _isSearchPatternEmpty)