From 98b2aaa26d2c24b0c9fe7c4d2e061d2d91ff02ec Mon Sep 17 00:00:00 2001 From: Steve Kinney Date: Mon, 30 Sep 2024 13:26:33 -0600 Subject: [PATCH] Use the default values --- examples/guess-the-number/game.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/guess-the-number/game.test.js b/examples/guess-the-number/game.test.js index 71dcc6b..1564fa8 100644 --- a/examples/guess-the-number/game.test.js +++ b/examples/guess-the-number/game.test.js @@ -4,7 +4,7 @@ import { Game } from './game'; describe('Game', () => { it('should return an instance of a game', () => { // This is mostly a dummy test. - const game = new Game(1, 10); + const game = new Game(); expect(game).toBeInstanceOf(Game); }); @@ -12,7 +12,7 @@ describe('Game', () => { // Thisn't really a useful test. // Do I *really* care about the type of the secret number? // Do I *really* care about the name of a "private" property? - const game = new Game(1, 10); + const game = new Game(); expect(game.secretNumber).toBeTypeOf('number'); }); });