Skip to content

Commit

Permalink
add unit test #946
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Jul 12, 2024
1 parent 47a1784 commit d39790b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[![npm](https://img.shields.io/badge/npm-2.42.2-blue.svg)](https://www.npmjs.com/package/jquery.terminal)
![bower](https://img.shields.io/badge/bower-2.42.2-yellow.svg)
[![Build and test](https://github.com/jcubic/jquery.terminal/actions/workflows/build.yaml/badge.svg?branch=master&event=push)](https://github.com/jcubic/jquery.terminal/actions/workflows/build.yaml)
[![Coverage Status](https://coveralls.io/repos/github/jcubic/jquery.terminal/badge.svg?branch=master&178e403b5b01bf07acdcbd8a0f64c147)](https://coveralls.io/github/jcubic/jquery.terminal?branch=master)
[![Coverage Status](https://coveralls.io/repos/github/jcubic/jquery.terminal/badge.svg?branch=master&3f75f3bdbaab431e0f8836338339f290)](https://coveralls.io/github/jcubic/jquery.terminal?branch=master)
![NPM Downloads](https://img.shields.io/npm/dm/jquery.terminal.svg?style=flat)
[![jsDelivr Downloads](https://data.jsdelivr.com/v1/package/npm/jquery.terminal/badge?style=rounded&n=1)](https://www.jsdelivr.com/package/npm/jquery.terminal)
[![Paid Support](https://img.shields.io/badge/paid-support-354465.svg)](https://support.jcubic.pl/)
Expand Down
5 changes: 5 additions & 0 deletions __tests__/terminal.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5294,6 +5294,11 @@ describe('Terminal plugin', function() {
await delay(10);
expect(output(term)).toEqual(['hello']);
});
// #946
it('should animate an empty line', async () => {
term.clear();
await term.echo('hello\n\nworld', { typing: true, delay: 0 });
});
});

describe('exec', function() {
Expand Down

0 comments on commit d39790b

Please sign in to comment.