diff options
Diffstat (limited to 'test/spec/YamlSpec.js')
-rw-r--r-- | test/spec/YamlSpec.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/spec/YamlSpec.js b/test/spec/YamlSpec.js index 682c4ea..feac414 100644 --- a/test/spec/YamlSpec.js +++ b/test/spec/YamlSpec.js @@ -68,7 +68,7 @@ describe('Parsed YAML Collections', function() { allow: ['localhost', '%.sourceforge.net', '%.freepan.org'] }); }); - return it('can merge key', function() { + it('can merge key', function() { return expect(YAML.parse("mapping:\n name: Joe\n job: Accountant\n <<:\n age: 38")).toEqual({ mapping: { name: 'Joe', @@ -77,6 +77,11 @@ describe('Parsed YAML Collections', function() { } }); }); + return it('can ignore trailing empty lines for smallest indent', function() { + return expect(YAML.parse(" trailing: empty lines\n")).toEqual({ + trailing: 'empty lines' + }); + }); }); describe('Parsed YAML Inline Collections', function() { |