Skip to content

Commit

Permalink
fix: improper method call in hand test
Browse files Browse the repository at this point in the history
  • Loading branch information
jll38 committed Feb 9, 2024
1 parent b723b36 commit 23a5080
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/hand.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ test("hitting an Ace should result in two decks incremented by 1 and 11 each", (
})

test("hitting a King, Jack, or Queen should result in both decks incremented by 10", () => {
const deck = Deck.create().clear();
const deck = Deck.create()
deck.clear();
deck.addCard(new PlayingCard("King", "Spades"))
deck.addCard(new PlayingCard("Jack", "Hearts"))
deck.addCard(new PlayingCard("Queen", "Diamonds"))
Expand Down

0 comments on commit 23a5080

Please sign in to comment.