(tests: Array<[string, string]>)
| 2 | import { envSpecUpdater, ParsedEnvSpecFile, parseEnvSpecDotEnvFile } from '../src'; |
| 3 | |
| 4 | function stringifyTests(tests: Array<[string, string]>) { |
| 5 | return () => { |
| 6 | tests.forEach((spec) => { |
| 7 | const [label, inputStr] = spec; |
| 8 | it(label, () => { |
| 9 | const result = parseEnvSpecDotEnvFile(inputStr); |
| 10 | const outputStr = result.toString(); |
| 11 | expect(outputStr).toEqual(inputStr); |
| 12 | }); |
| 13 | }); |
| 14 | }; |
| 15 | } |
| 16 | |
| 17 | /* eslint-disable @stylistic/array-bracket-newline */ |
| 18 | describe('re-stringification', stringifyTests([ |
no test coverage detected