Skip to content

Commit

Permalink
add unit tests #709
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Dec 13, 2021
1 parent 1a15536 commit af710c0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions __tests__/terminal.spec.js
Expand Up @@ -2707,6 +2707,14 @@ describe('extensions', function() {
var color = term[0].querySelector(`[data-index='${term.last_index()}`).firstChild.firstChild.style.color;
expect(color).toEqual("red");
});
it('should print multiple !flush && !newline', function() {
term.echo('foo, ', {newline: false, flush: false});
term.echo('bar, ', {newline: false, flush: false});
term.echo('baz, ', {newline: false, flush: false});
term.flush();
expect(term.get_output()).toEqual('foo, bar, baz, ');
expect(output(term)).toEqual(['foo, bar, baz, ']);
});
});
describe('autocomplete_menu', function() {
function completion(term) {
Expand Down

0 comments on commit af710c0

Please sign in to comment.