Skip to content

Commit

Permalink
fixups following the nodeca#470/nodeca#473 revert action.
Browse files Browse the repository at this point in the history
  • Loading branch information
GerHobbelt committed Apr 16, 2019
1 parent 1da7558 commit 53b5352
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/20-dumper.js
Expand Up @@ -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');
});

});
2 changes: 1 addition & 1 deletion test/units/dump-scalar-styles.js
Expand Up @@ -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');
});
Expand Down

0 comments on commit 53b5352

Please sign in to comment.