Skip to content

Commit 8483b22

Browse files
committed
test: fix turtles.test.js setup by initializing _borderContainer and calling mixinPrototypes
1 parent 74477e8 commit 8483b22

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

js/__tests__/turtles.test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ describe("Turtles Class", () => {
9797

9898
turtles = new Turtles(activityMock);
9999
turtles.activity = activityMock;
100+
turtles._borderContainer = new createjs.Container();
101+
102+
// Mix in the prototypes to get the getters and setters
103+
mixinPrototypes(turtles);
104+
100105
turtles.getTurtleCount = jest.fn().mockReturnValue(0);
101106
turtles.getTurtle = jest.fn(() => ({
102107
container: {

0 commit comments

Comments
 (0)