MCPcopy
hub / github.com/dmno-dev/varlock / stringifyTests

Function stringifyTests

packages/env-spec-parser/test/stringify.test.ts:4–15  ·  view source on GitHub ↗
(tests: Array<[string, string]>)

Source from the content-addressed store, hash-verified

2import { envSpecUpdater, ParsedEnvSpecFile, parseEnvSpecDotEnvFile } from '../src';
3
4function 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 */
18describe('re-stringification', stringifyTests([

Callers 1

stringify.test.tsFile · 0.85

Calls 2

parseEnvSpecDotEnvFileFunction · 0.90
toStringMethod · 0.45

Tested by

no test coverage detected