Test for getCostumeName

This commit is contained in:
Florrie 2018-06-09 21:52:46 -03:00
parent 404834018b
commit 93d6b23772

View file

@ -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();
});