mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2024-12-28 06:50:43 -05:00
18 lines
388 B
JavaScript
18 lines
388 B
JavaScript
import { Gameboard } from '../src/components/gameboard';
|
|
class Player {
|
|
constructor(name) {
|
|
this.gameboard = new Gameboard();
|
|
this.playerName = name;
|
|
}
|
|
}
|
|
|
|
let p = new Player('Player1');
|
|
|
|
it('should contain a gameboard', () => {
|
|
expect(p.gameboard).toHaveProperty(
|
|
'ships',
|
|
'scoreboard',
|
|
'shipCount',
|
|
'sunkShipCount',
|
|
);
|
|
});
|