This commit is contained in:
David Marshall 2023-04-20 15:05:40 -04:00
parent 3acbe2f744
commit 0117646fb9

View file

@ -13,7 +13,7 @@ const EXPECTED_YAML = "version: 1.0.0\ndependencies:\n yaml: ^1.10.0\npackage:\
TestRegister.addTests([ TestRegister.addTests([
{ {
name: "JSON to YAML: no spacing", name: "JSON to YAML: no spacing",
input: JSON.stringify({"version":"1.0.0","dependencies":{"yaml":"^1.10.0"},"package":{"exclude":[".idea/**",".gitignore"]}}), input: JSON.stringify({ "version": "1.0.0", "dependencies": { "yaml": "^1.10.0" }, "package": { "exclude": [".idea/**", ".gitignore"]}}),
expectedOutput: EXPECTED_YAML, expectedOutput: EXPECTED_YAML,
recipeConfig: [ recipeConfig: [
{ {
@ -24,7 +24,7 @@ TestRegister.addTests([
}, },
{ {
name: "JSON to YAML: with spacing", name: "JSON to YAML: with spacing",
input: JSON.stringify({"version":"1.0.0","dependencies":{"yaml":"^1.10.0"},"package":{"exclude":[".idea/**",".gitignore"]}}, null, 4), input: JSON.stringify({ "version": "1.0.0", "dependencies": { "yaml": "^1.10.0" }, "package": { "exclude": [".idea/**", ".gitignore"]}}, null, 4),
expectedOutput: EXPECTED_YAML, expectedOutput: EXPECTED_YAML,
recipeConfig: [ recipeConfig: [
{ {