Skip to content

Commit 49fa01f

Browse files
committed
fix bugs
1 parent 4b5b232 commit 49fa01f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/mazeController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ module.exports = class MazeController {
305305
*/
306306
animatedLook(direction, id = null) {
307307
var x = this.getPegmanX(id);
308-
var y = this.getPegmany(id);
308+
var y = this.getPegmanY(id);
309309
switch (direction) {
310310
case tiles.Direction.NORTH:
311311
x += 0.5;

test/unit/bee.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ describe("Bee", function () {
6666

6767
bee = new Bee({
6868
map,
69-
pegmanX: 0,
70-
pegmanY: 0,
69+
getPegmanX: () => {return 0;},
70+
getPegmanY: () => {return 0;}
7171
});
7272

7373
const flowerEmptySpy = jest.fn();

0 commit comments

Comments
 (0)