(key)
| 306 | |
| 307 | function validateApplicationInfo(options) { |
| 308 | function validateString(key) { |
| 309 | const str = options[key]; |
| 310 | |
| 311 | if (str !== null && str !== undefined && typeof str !== 'string') { |
| 312 | throw new TypeError(`${key} should be a String`); |
| 313 | } |
| 314 | } |
| 315 | |
| 316 | validateString('applicationName'); |
| 317 | validateString('applicationVersion'); |
no outgoing calls
no test coverage detected