(config: any, method: string)
| 31 | method + `: ${field} should be defined` |
| 32 | |
| 33 | export function validateSampleConfig(config: any, method: string) { |
| 34 | let atLeastOneFieldExists = false |
| 35 | forEach(sampleConfigFields, field => { |
| 36 | if (field in config) { |
| 37 | assert(config[field] != null, fieldErrorMessage(method, field)) |
| 38 | atLeastOneFieldExists = true |
| 39 | } |
| 40 | }) |
| 41 | return atLeastOneFieldExists |
| 42 | } |
| 43 | |
| 44 | export function sample(...args: any[]) { |
| 45 | let target |
no test coverage detected
searching dependent graphs…