(fileName: string)
| 12 | import {rootPath} from '../../support/test-utils'; |
| 13 | |
| 14 | function readConfig(fileName: string) { |
| 15 | return new Promise<string>((resolve, reject) => { |
| 16 | readFile(rootPath('src/config', fileName), {encoding: 'utf-8'}, (err, data) => { |
| 17 | if (err) { |
| 18 | reject(err); |
| 19 | return; |
| 20 | } |
| 21 | resolve(data); |
| 22 | }); |
| 23 | }); |
| 24 | } |
| 25 | |
| 26 | function isURLPatternValid(url: string) { |
| 27 | return url.length > 0 && url.indexOf('://') < 0; |
no test coverage detected