mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 12:20:31 +00:00
13 lines
316 B
JavaScript
13 lines
316 B
JavaScript
import { expect } from '~/testInit';
|
|
import { Lexer } from '@/lib/LogicEvaluation/Lexer';
|
|
|
|
describe('Lexer', () => {
|
|
|
|
it('Should retrieve tokens of the expression.', () => {
|
|
const lexer = new Lexer('(1 && 2) || (2 || 3)');
|
|
|
|
const tokens = lexer.getTokens();
|
|
expect(tokens.length).equals(11);
|
|
});
|
|
});
|