From 53b5352650b686f1718bb025f35f7e6356d2c342 Mon Sep 17 00:00:00 2001 From: Ger Hobbelt Date: Tue, 16 Apr 2019 23:36:04 +0200 Subject: [PATCH] fixups following the #470/#473 revert action. --- test/20-dumper.js | 4 ++-- test/units/dump-scalar-styles.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/20-dumper.js b/test/20-dumper.js index 8882396d..a74c95bc 100644 --- a/test/20-dumper.js +++ b/test/20-dumper.js @@ -31,12 +31,12 @@ suite('Dumper', function () { test('single quote scalars', function () { var serialized = yaml.dump({ k: 'v', empty: '' }, { schema: TEST_SCHEMA, scalarQuoteStyle: 'single' }); - assert.equal(serialized, "k: 'v'\nempty: ''\n"); + assert.equal(serialized, "k: v\nempty: ''\n"); }); test('double quote scalars', function () { var serialized = yaml.dump({ k: 'v', empty: '' }, { schema: TEST_SCHEMA, scalarQuoteStyle: 'double' }); - assert.equal(serialized, 'k: "v"\nempty: ""\n'); + assert.equal(serialized, 'k: v\nempty: ""\n'); }); }); diff --git a/test/units/dump-scalar-styles.js b/test/units/dump-scalar-styles.js index 36f9ade8..9978ca82 100644 --- a/test/units/dump-scalar-styles.js +++ b/test/units/dump-scalar-styles.js @@ -39,7 +39,7 @@ suite('Scalar style dump:', function () { test('disallows flow indicators inside flow collections', function () { assert.strictEqual(yaml.safeDump({ quote: 'mispell [sic]' }, { flowLevel: 0 }), - '{quote: mispell [sic]}\n'); + "{quote: 'mispell [sic]'}\n"); assert.strictEqual(yaml.safeDump({ key: 'no commas, either' }, { flowLevel: 0 }), '{key: no commas, either}\n'); });