Skip to content

Commit 26ca0e3

Browse files
Gozalajimmywarting
authored andcommitted
create test illustrating a bug
1 parent 99388a7 commit 26ca0e3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@ test('Blob slice(0, -1)', async t => {
114114
t.is(await blob.text(), 'abcdefg');
115115
});
116116

117+
test('Blob(["hello ", "world"]).slice(5)', async t => {
118+
const parts = ['hello ', 'world'];
119+
const blob = new Blob(parts);
120+
t.is(await blob.slice(5).text(), ' world');
121+
});
122+
117123
test('throw away unwanted parts', async t => {
118124
const blob = new Blob(['a', 'b', 'c']).slice(1, 2);
119125
t.is(await blob.text(), 'b');

0 commit comments

Comments
 (0)