(value: any, ...validValues: any[])
| 136 | } |
| 137 | |
| 138 | export function assertOneOf(value: any, ...validValues: any[]) { |
| 139 | if (validValues.indexOf(value) !== -1) return true; |
| 140 | throwError( |
| 141 | `Expected value to be one of ${JSON.stringify(validValues)} but was ${JSON.stringify(value)}.`, |
| 142 | ); |
| 143 | } |
| 144 | |
| 145 | export function assertNotReactive(fn: string): void { |
| 146 | if (getActiveConsumer() !== null) { |
no test coverage detected
searching dependent graphs…