Skip to content

Commit

Permalink
test(unit): check YAML extras presence (#880)
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub authored Aug 28, 2024
1 parent 92aede5 commit 8c3730e
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions test/vendor.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,33 @@ describe('YAML', () => {
test('YAML.stringify', () => {
assert.equal(YAML.stringify({ a: 'b' }), 'a: b\n')
})

test('exposes YAML extras', () => {
;[
'parseAllDocuments',
'parseDocument',
'isAlias',
'isCollection',
'isDocument',
'isMap',
'isNode',
'isPair',
'isScalar',
'isSeq',
'Alias',
'Composer',
'Document',
'Schema',
'YAMLSeq',
'YAMLMap',
'YAMLError',
'YAMLParseError',
'YAMLWarning',
'Pair',
'Scalar',
'Lexer',
'LineCounter',
'Parser',
].forEach((k) => assert.ok(k in YAML))
})
})

0 comments on commit 8c3730e

Please sign in to comment.