* Detect options in a file and compare result with expected. * File names should be relative to test suite's folder. * @param {Array} options List of options that should be detected * @param {String} input Name of template file * @param {Object} expected Expected config with detected opt
(options, input, expected)
| 40 | * @param {Object} expected Expected config with detected options |
| 41 | */ |
| 42 | shouldDetect(options, input, expected) { |
| 43 | let detectedConfig = Comb.detectInString(input, options); |
| 44 | assert.deepEqual(detectedConfig, expected); |
| 45 | } |
| 46 | |
| 47 | readFile(filename) { |
| 48 | let dirname = path.dirname(this.file); |