Skip to content

Commit d39790b

Browse files
committed
add unit test #946
1 parent 47a1784 commit d39790b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
[![npm](https://img.shields.io/badge/npm-2.42.2-blue.svg)](https://www.npmjs.com/package/jquery.terminal)
99
![bower](https://img.shields.io/badge/bower-2.42.2-yellow.svg)
1010
[![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)
11-
[![Coverage Status](https://coveralls.io/repos/github/jcubic/jquery.terminal/badge.svg?branch=master&178e403b5b01bf07acdcbd8a0f64c147)](https://coveralls.io/github/jcubic/jquery.terminal?branch=master)
11+
[![Coverage Status](https://coveralls.io/repos/github/jcubic/jquery.terminal/badge.svg?branch=master&3f75f3bdbaab431e0f8836338339f290)](https://coveralls.io/github/jcubic/jquery.terminal?branch=master)
1212
![NPM Downloads](https://img.shields.io/npm/dm/jquery.terminal.svg?style=flat)
1313
[![jsDelivr Downloads](https://data.jsdelivr.com/v1/package/npm/jquery.terminal/badge?style=rounded&n=1)](https://www.jsdelivr.com/package/npm/jquery.terminal)
1414
[![Paid Support](https://img.shields.io/badge/paid-support-354465.svg)](https://support.jcubic.pl/)

__tests__/terminal.spec.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5294,6 +5294,11 @@ describe('Terminal plugin', function() {
52945294
await delay(10);
52955295
expect(output(term)).toEqual(['hello']);
52965296
});
5297+
// #946
5298+
it('should animate an empty line', async () => {
5299+
term.clear();
5300+
await term.echo('hello\n\nworld', { typing: true, delay: 0 });
5301+
});
52975302
});
52985303

52995304
describe('exec', function() {

0 commit comments

Comments
 (0)