Skip to content

Commit

Permalink
Change list block name
Browse files Browse the repository at this point in the history
The name is taken from scratch-blocks
  • Loading branch information
rfronczyk committed Oct 9, 2024
1 parent 15a9463 commit 99b29f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/sb3.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const blocks = function (targets) {
opcode = 'data_variable';
break;
case (13):
opcode = 'data_list';
opcode = 'data_listcontents';
break;
}
}
Expand Down
4 changes: 2 additions & 2 deletions test/unit/sb3.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,12 +377,12 @@ test('correctly handling primitve reporter blocks: list and variable', t => {
t.equal(result.blocks.count, 3);
t.equal(result.blocks.unique, 3);
t.same(result.blocks.id, [
'data_list',
'data_listcontents',
'motion_changexby',
'data_variable'
]);
t.same(result.blocks.frequency, {
data_list: 1,
data_listcontents: 1,
motion_changexby: 1,
data_variable: 1
});
Expand Down

0 comments on commit 99b29f8

Please sign in to comment.