regexper-static/spec/parser/javascript/repeat_required_spec.js

14 lines
356 B
JavaScript
Raw Normal View History

2014-12-20 01:53:15 +00:00
import javascript from 'src/js/parser/javascript/parser.js';
describe('parser/javascript/repeat_any.js', function() {
it('parses "+" as a RepeatRequired', function() {
var parser = new javascript.Parser('+');
expect(parser.__consume__repeat_required()).toEqual(jasmine.objectContaining({
minimum: 1,
maximum: -1
}));
});
});