Skip to content

Commit 4829910

Browse files
committed
test: update comment ID in engine adapter test
1 parent 654380c commit 4829910

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/scratch-vm/test/unit/engine_adapter.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,12 @@ test('create with comment', t => {
5252
t.ok(Array.isArray(result));
5353
t.equal(result.length, 2);
5454

55+
t.type(result[0].id, 'string');
5556
t.type(result[0].comment, 'string');
56-
t.equal(result[0].comment, 'aCommentId');
57+
58+
// as of scratch-blocks@^2, the comment ID is derived from the block ID
59+
t.equal(result[0].id, 'z!+#Nqr,_(V=xz0y7a@d');
60+
t.equal(result[0].comment, 'z!+#Nqr,_(V=xz0y7a@d_comment');
5761

5862
t.end();
5963
});

0 commit comments

Comments
 (0)