Skip to content

Commit 53cb283

Browse files
committed
test that ScratchCommon.external exists
1 parent ee218c5 commit 53cb283

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/unit/tw_extension_api_common.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,13 @@ test('Cast', t => {
3232
t.equal(ScratchCommon.Cast.toListIndex('1.5', 10, false), 1);
3333
t.end();
3434
});
35+
36+
test('external', t => {
37+
// has more tests in separate file, mostly just making sure that external exists at all
38+
ScratchCommon.external.fetch('data:text/plain;,test').then(r => {
39+
r.text().then(text => {
40+
t.equal(text, 'test');
41+
t.end();
42+
});
43+
});
44+
});

0 commit comments

Comments
 (0)