(string, src)
| 150 | * @param {string} src |
| 151 | */ |
| 152 | export function validateSrcContains(string, src) { |
| 153 | if (src.indexOf(string) === -1) { |
| 154 | throw new Error('Invalid src ' + src); |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | /** |
| 159 | * Utility function to perform a potentially asynchronous task |
no outgoing calls
no test coverage detected