Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
stephtelolahy committed Nov 23, 2023
1 parent 6c7310d commit 6df48b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct EffectActivateCounterCards: EffectResolver {
private extension GameState {
func isCounterCard(_ card: String, player: String) -> Bool {
var cardName = card.extractName()

// resolve card alias>
if let alias = alias(for: card, player: player) {
cardName = alias
Expand Down
6 changes: 2 additions & 4 deletions GameKit/Tests/InventoryTests/Figures/CalamityJanetTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Inventory
import XCTest

final class CalamityJanetTests: XCTestCase {
func test_calamityJanetPlayingBang_duringHerTurn_shouldPlayAsBang() throws {
func test_calamityJanetPlayingBang_shouldPlayAsBang() throws {
// Given
let state = GameState.makeBuilderWithCardRef()
.withPlayer("p1") {
Expand All @@ -19,7 +19,6 @@ final class CalamityJanetTests: XCTestCase {
.withFigure(.calamityJanet)
}
.withPlayer("p2")
.withTurn("p1")
.build()

// When
Expand All @@ -36,7 +35,7 @@ final class CalamityJanetTests: XCTestCase {
])
}

func test_calamityJanetPlayingMissed_duringHerTurn_shouldPlayAsBang() throws {
func test_calamityJanetPlayingMissed_shouldPlayAsBang() throws {
// Given
let state = GameState.makeBuilderWithCardRef()
.withPlayer("p1") {
Expand All @@ -45,7 +44,6 @@ final class CalamityJanetTests: XCTestCase {
.withFigure(.calamityJanet)
}
.withPlayer("p2")
.withTurn("p1")
.build()

// When
Expand Down

0 comments on commit 6df48b0

Please sign in to comment.