Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
SpacialCircumstances committed Sep 8, 2024
1 parent 98624ca commit 6dedfa1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion server/spec/player.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import CarrierService from '../services/carrier';
import PlayerService from '../services/player';
import NameService from '../services/name';
import TechnologyService from '../services/technology';
import PlayerColourService from "../services/playerColour";

const gameNames = require('../config/game/gameNames');
const starNames = require('../config/game/starNames');
Expand Down Expand Up @@ -136,6 +137,7 @@ describe('player', () => {
let mapService;
let technologyService;
let playerService;
let playerColourService;

beforeEach(() => {
// Use real services because I cannot fathom how to fake all this shit.
Expand All @@ -153,7 +155,10 @@ describe('player', () => {
// @ts-ignore
technologyService = new TechnologyService();
// @ts-ignore
playerService = new PlayerService(null, randomService, mapService, starService, carrierService, starDistanceService, technologyService);
playerColourService = new PlayerColourService(randomService);
// @ts-ignore
playerService = new PlayerService(null, randomService, mapService, starService, carrierService, starDistanceService, technologyService, null, null, null, null, playerColourService);

});

it('should create an empty player', () => {
Expand Down

0 comments on commit 6dedfa1

Please sign in to comment.