@tdurtschi/bug
Version:
Bug is a simulation that models a weevil walking around in an HTML canvas.
17 lines • 755 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = __importDefault(require("react"));
var react_2 = require("@testing-library/react");
var App_1 = __importDefault(require("./App"));
var game_stub_1 = require("../../../spec/fixtures/game-stub");
describe("App", function () {
it("Starts the game upon rendering.", function () {
var game = game_stub_1.gameStub();
react_2.render(react_1.default.createElement(App_1.default, { game: game, width: 0, height: 0 }));
expect(game.start).toHaveBeenCalled();
});
});
//# sourceMappingURL=app.spec.js.map