Skip to content

Commit

Permalink
Add test to NLPTest
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagodp committed Jun 20, 2018
1 parent c71f9d3 commit 18baead
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions __tests__/nlp/NLPTest.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ describe( 'NLPTest', () => {
expect( r.entities[ 1 ].value ).toBe( 'bar' );
} );

it( 'starts with a number', () => {
let r: NLPResult = nlp.recognize( 'en', ' "1foo" ' );
expect( r.entities ).toHaveLength( 1 );
expect( r.entities[ 0 ].entity ).toBe( Entities.VALUE );
expect( r.entities[ 0 ].value ).toBe( '1foo' );
} );

});


Expand Down

0 comments on commit 18baead

Please sign in to comment.