We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92aede5 commit 8c3730eCopy full SHA for 8c3730e
test/vendor.test.js
@@ -24,4 +24,33 @@ describe('YAML', () => {
24
test('YAML.stringify', () => {
25
assert.equal(YAML.stringify({ a: 'b' }), 'a: b\n')
26
})
27
+
28
+ test('exposes YAML extras', () => {
29
+ ;[
30
+ 'parseAllDocuments',
31
+ 'parseDocument',
32
+ 'isAlias',
33
+ 'isCollection',
34
+ 'isDocument',
35
+ 'isMap',
36
+ 'isNode',
37
+ 'isPair',
38
+ 'isScalar',
39
+ 'isSeq',
40
+ 'Alias',
41
+ 'Composer',
42
+ 'Document',
43
+ 'Schema',
44
+ 'YAMLSeq',
45
+ 'YAMLMap',
46
+ 'YAMLError',
47
+ 'YAMLParseError',
48
+ 'YAMLWarning',
49
+ 'Pair',
50
+ 'Scalar',
51
+ 'Lexer',
52
+ 'LineCounter',
53
+ 'Parser',
54
+ ].forEach((k) => assert.ok(k in YAML))
55
+ })
56
0 commit comments