Skip to content

Commit 4c83b1a

Browse files
committed
Add a parse test for the null node
1 parent 730c3dd commit 4c83b1a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/parse.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ function parseFixture(string) {
1616

1717
describe('parse()', function () {
1818

19+
describe('null', function () {
20+
it('should parse a <null> node into a null value', function () {
21+
var parsed = parseFixture('<null/>');
22+
assert.strictEqual(parsed, undefined);
23+
});
24+
});
25+
1926
describe('boolean', function () {
2027
it('should parse a <true> node into a Boolean `true` value', function () {
2128
var parsed = parseFixture('<true/>');

0 commit comments

Comments
 (0)