(fetch, options = {})
| 3883 | }); |
| 3884 | } |
| 3885 | function terminal(fetch, options = {}) { |
| 3886 | return $('<div/>').terminal(async function() { |
| 3887 | const res = await fetch.call(this); |
| 3888 | const text = await res.text(); |
| 3889 | this.echo(text); |
| 3890 | }, { greetings: false, ...options }); |
| 3891 | } |
| 3892 | describe('fetch with abort', () => { |
| 3893 | let term; |
| 3894 | beforeEach(() => { |
no test coverage detected
searching dependent graphs…