Move Assertions out of battlers, where it does not belong, into testing, where it does belong.

main
Mari 3 years ago
parent 6e9c33f04a
commit e592681ed2
  1. 2
      src/battlers/Energy.test.ts
  2. 2
      src/battlers/Energy.ts
  3. 2
      src/battlers/HitPoints.test.ts
  4. 2
      src/battlers/HitPoints.ts
  5. 0
      src/testing/Assertions.test.ts
  6. 0
      src/testing/Assertions.ts

@ -7,7 +7,7 @@ import {
isValidEnergy,
isValidMaxStamina, recoverEnergy, recoverStamina, setCurrentEnergy, setCurrentStamina, setMaxStamina
} from "./Energy";
import {assertion, AssertionConfig} from "./Assertions";
import {assertion, AssertionConfig} from "../testing/Assertions";
let originalConfig: AssertionConfig.Type

@ -1,4 +1,4 @@
import {assertion} from "./Assertions";
import {assertion} from "../testing/Assertions";
/** The interface managing a character's Stamina and Energy. */
export interface Energy {

@ -21,7 +21,7 @@ import {
setMaxConfidence,
setMaxHealth, checkConsistentConfidenceDelta
} from "./HitPoints";
import {assertion, AssertionConfig} from "./Assertions";
import {assertion, AssertionConfig} from "../testing/Assertions";
const InvalidHitPoints = {currentHealth: 999, maxHealth: 99, maxConfidence: 100, currentConfidence: 20};
let originalConfig: AssertionConfig.Type

@ -1,4 +1,4 @@
import {assertion} from "./Assertions";
import {assertion} from "../testing/Assertions";
/**
* HitPointsWithoutConfidence contains the hit points data without the current confidence as is needed for calculating

Loading…
Cancel
Save