Skip to content

Commit 3cb688f

Browse files
author
gourijain026@gmail.com
committed
Fix incomplete activity mock in GraphicsBlocks.test.js
1 parent 0969192 commit 3cb688f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

js/blocks/__tests__/GraphicsBlocks.test.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ global.ValueBlock = class {
4242
}
4343
};
4444

45-
global.FlowBlock = class extends global.ValueBlock {};
45+
global.FlowBlock = class extends global.ValueBlock { };
4646
global.FlowClampBlock = class extends global.FlowBlock {
4747
makeMacro = jest.fn();
4848
};
@@ -80,7 +80,11 @@ describe("GraphicsBlocks", () => {
8080
};
8181

8282
activity = {
83-
blocks: {},
83+
blocks: {
84+
blockList: {
85+
0: { connections: [null] }
86+
}
87+
},
8488
errorMsg: jest.fn(),
8589
turtles: {
8690
companionTurtle: jest.fn(() => 0),

0 commit comments

Comments
 (0)