Skip to content

Commit e30d62b

Browse files
committed
add test for creation of SlotList with null arguments
1 parent f5c5ff9 commit e30d62b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/org/osflash/signals/SlotListTest.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ describe("SlotListTest", () => {
5555
assert.throws(() => new SlotList(null, listOfA), Error);
5656
});
5757

58+
it("constructing_with_null_head_and_null_tail_throws_error", () => {
59+
assert.throws(() => new SlotList(null, null), Error);
60+
});
61+
5862
it("list_with_one_listener_contains_it", () => {
5963
assert.isTrue(listOfA.contains(listenerA));
6064
});

0 commit comments

Comments
 (0)