Skip to content

Commit 7d8af60

Browse files
committed
test: minor changes
1 parent 4653f7c commit 7d8af60

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/slot.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ context("Slot", () => {
7474

7575
context("collection", () => {
7676
it("items", () => {
77+
const slots = mod.getSlots();
7778
const slot = slots.items(config.controlValues.slot.slotIndex);
7879
const mechanisms = slot.getMechanisms();
7980
assert.strictEqual(!!mechanisms.length, true);
@@ -83,6 +84,7 @@ context("Slot", () => {
8384
assert.strictEqual(!!mech.name, true);
8485
});
8586
it("tryGetItem", () => {
87+
const slots = mod.getSlots();
8688
const slot = slots.items(config.controlValues.slot.slotIndex);
8789
const mechanisms = slot.getMechanisms();
8890

@@ -91,6 +93,7 @@ context("Slot", () => {
9193
assert.strictEqual(mech, null);
9294
});
9395
it("for..of mechanisms", () => {
96+
const slots = mod.getSlots();
9497
const slot = slots.items(config.controlValues.slot.slotIndex);
9598
const mechanisms = slot.getMechanisms();
9699
for (const mech of mechanisms) {

0 commit comments

Comments
 (0)