mirror of https://gitee.com/bigwinds/arangodb
12 lines
396 B
JavaScript
12 lines
396 B
JavaScript
'use strict';
|
|
|
|
|
|
var assert = require('assert');
|
|
var yaml = require('../../');
|
|
|
|
|
|
test('Prevent adding unnecessary space character to end of a line within block collections', function () {
|
|
assert.strictEqual(yaml.dump({ data: [ 'foo', 'bar', 'baz' ] }), 'data:\n - foo\n - bar\n - baz\n');
|
|
assert.strictEqual(yaml.dump({ foo: { bar: [ 'baz' ] } }), 'foo:\n bar:\n - baz\n');
|
|
});
|