Skip to content

Commit 923d67b

Browse files
committed
test: Add test for tab after indent spaces for flow-in-block (#604)
1 parent 7cf843c commit 923d67b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/doc/parse.ts

+6
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,12 @@ describe('odd indentations', () => {
445445
expect(doc.errors).toHaveLength(0)
446446
expect(doc.contents).toMatchObject({ value: 'x\n' })
447447
})
448+
449+
test('tab after indent spaces for flow-in-block (#604)', () => {
450+
const doc = YAML.parseDocument<YAML.YAMLMap, false>('foo:\n \tbar')
451+
expect(doc.errors).toHaveLength(0)
452+
expect(doc.toJS()).toMatchObject({ foo: 'bar' })
453+
})
448454
})
449455

450456
describe('Excessive entity expansion attacks', () => {

0 commit comments

Comments
 (0)