Skip to content

Commit

Permalink
Add a parse test for the null node
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Apr 26, 2022
1 parent 730c3dd commit 4c83b1a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ function parseFixture(string) {

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

describe('null', function () {
it('should parse a <null> node into a null value', function () {
var parsed = parseFixture('<null/>');
assert.strictEqual(parsed, undefined);
});
});

describe('boolean', function () {
it('should parse a <true> node into a Boolean `true` value', function () {
var parsed = parseFixture('<true/>');
Expand Down

0 comments on commit 4c83b1a

Please sign in to comment.