( state: GitifyNotificationState | undefined, )
| 186 | * @returns `true` if the state is currently filtered out. |
| 187 | */ |
| 188 | export function isStateFilteredOut( |
| 189 | state: GitifyNotificationState | undefined, |
| 190 | ): boolean { |
| 191 | const notification = { subject: { state: state } } as GitifyNotification; |
| 192 | |
| 193 | return !passesStateFilter(notification); |
| 194 | } |
| 195 | |
| 196 | /** |
| 197 | * Return true if a notification with the given user would be filtered out |
no test coverage detected