mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-05-19 18:00:43 -04:00
Test for getCostumeName
This commit is contained in:
parent
404834018b
commit
93d6b23772
1 changed files with 9 additions and 2 deletions
|
@ -34,8 +34,15 @@ test('getCostumeNumberName returns 1-indexed costume number', t => {
|
|||
test('getCostumeNumberName can return costume name', t => {
|
||||
util.target.currentCostume = 0; // This is 0-indexed.
|
||||
const args = {NUMBER_NAME: 'name'};
|
||||
const number = blocks.getCostumeNumberName(args, util);
|
||||
t.strictEqual(number, 'first name');
|
||||
const name = blocks.getCostumeNumberName(args, util);
|
||||
t.strictEqual(name, 'first name');
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('getCostumeName returns costume name', t => {
|
||||
util.target.currentCostume = 0; // This is 0-indexed.
|
||||
const name = blocks.getCostumeNumberName({}, util);
|
||||
t.strictEqual(name, 'first name');
|
||||
t.end();
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue