Closed mrsimpson closed 5 years ago
How about an additional test like this:
it('should allow re-use', () => {
expect(parser.renderAsText(simpleStructure)).toEqual(simpleText);
expect(parser.renderAsText(simpleStructure)).toEqual(simpleText);
});
As discussed: Changed the implementation of the library. Compatible change:
notRecognized
is now always being returned. If everything has been recognized, this is an empty string (falsy)