Skip to content

Commit

Permalink
add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
beckjake committed Sep 15, 2022
1 parent 0288f41 commit daad753
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/issues/0682.js
@@ -0,0 +1,12 @@
'use strict';

const assert = require('assert');
const fs = require('fs');
const yaml = require('../..');


it('Should serialize strings with tabs as blocks', function () {
const expected = fs.readFileSync(require('path').join(__dirname, '/0682.yml'), 'utf8');
const result = yaml.dump({ value: 'a\n\tb' });
assert.strictEqual(expected, result);
});
3 changes: 3 additions & 0 deletions test/issues/0682.yml
@@ -0,0 +1,3 @@
value: |-
a
b

0 comments on commit daad753

Please sign in to comment.