assistify / diary

Apache License 2.0
0 stars 1 forks source link

Refactor parser library #57

Closed mrsimpson closed 5 years ago

mrsimpson commented 5 years ago

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)

jschirrmacher commented 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);
  });