Skip to content

Commit

Permalink
units.json -> units.ts
Browse files Browse the repository at this point in the history
adjusted comments, renamed fn, added some expect-errors
  • Loading branch information
allmtz committed Jul 19, 2023
1 parent 4063a70 commit 28210b4
Show file tree
Hide file tree
Showing 5 changed files with 4,013 additions and 4,010 deletions.
4 changes: 2 additions & 2 deletions src/__tests__/creature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ const getHexesMock = () => {
return arr;
};

import data from '../data/units.json';
import { unitData } from '../data/units';
import Game from '../game';

const getGameMock = () => {
Expand All @@ -263,7 +263,7 @@ const getGameMock = () => {
},
Phaser: getPhaserMock(),
retrieveCreatureStats: (type: number) => {
for (const d of data) {
for (const d of unitData) {
if (d.id === type) {
return d;
}
Expand Down
Loading

0 comments on commit 28210b4

Please sign in to comment.