Skip to content

Commit 447b377

Browse files
authored
Merge pull request #119 from trufae/another-null-test
Add a parse test for the null node
2 parents 730c3dd + 4c83b1a commit 447b377

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)