|
|
@ -22,9 +22,6 @@ describe('GameSolo get tests', () => {
|
|
|
|
it('should return blackjack.jpg', () => {
|
|
|
|
it('should return blackjack.jpg', () => {
|
|
|
|
expect(game.getImageSource()).toEqual(img);
|
|
|
|
expect(game.getImageSource()).toEqual(img);
|
|
|
|
})
|
|
|
|
})
|
|
|
|
it('should return super jeu', () => {
|
|
|
|
|
|
|
|
expect(game.getGameSource()).toBe('super jeu');
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
it('should return 1', () => {
|
|
|
|
it('should return 1', () => {
|
|
|
|
expect(game.getNbPlayerMin()).toBe(1);
|
|
|
|
expect(game.getNbPlayerMin()).toBe(1);
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -47,10 +44,6 @@ describe('GameSolo set tests', () => {
|
|
|
|
game.setImageSource(img);
|
|
|
|
game.setImageSource(img);
|
|
|
|
expect(game.getImageSource()).toEqual(img);
|
|
|
|
expect(game.getImageSource()).toEqual(img);
|
|
|
|
})
|
|
|
|
})
|
|
|
|
it('should return trop cool le jeu', () => {
|
|
|
|
|
|
|
|
game.setGameSource('trop cool le jeu');
|
|
|
|
|
|
|
|
expect(game.getGameSource()).toBe('trop cool le jeu');
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
it('should return 2', () => {
|
|
|
|
it('should return 2', () => {
|
|
|
|
game.setNbPlayerMin(2);
|
|
|
|
game.setNbPlayerMin(2);
|
|
|
|
expect(game.getNbPlayerMin()).toBe(2);
|
|
|
|
expect(game.getNbPlayerMin()).toBe(2);
|
|
|
@ -64,16 +57,16 @@ describe('GameSolo set tests', () => {
|
|
|
|
|
|
|
|
|
|
|
|
// Coins Calculator tests
|
|
|
|
// Coins Calculator tests
|
|
|
|
describe('GameSolo coins calculator tests', () => {
|
|
|
|
describe('GameSolo coins calculator tests', () => {
|
|
|
|
it('should return 50', () => {
|
|
|
|
it('should return 3', () => {
|
|
|
|
expect(game.coinsCalculator(3)).toBe(50);
|
|
|
|
expect(game.coinsCalculator(3)).toBe(3);
|
|
|
|
})
|
|
|
|
})
|
|
|
|
it('should return 75', () => {
|
|
|
|
it('should return 4', () => {
|
|
|
|
expect(game.coinsCalculator(4)).toBe(75);
|
|
|
|
expect(game.coinsCalculator(4)).toBe(4);
|
|
|
|
})
|
|
|
|
})
|
|
|
|
it('should return 100', () => {
|
|
|
|
it('should return 5', () => {
|
|
|
|
expect(game.coinsCalculator(5)).toBe(100);
|
|
|
|
expect(game.coinsCalculator(5)).toBe(5);
|
|
|
|
})
|
|
|
|
})
|
|
|
|
it('should return 150', () => {
|
|
|
|
it('should return 6', () => {
|
|
|
|
expect(game.coinsCalculator(6)).toBe(150);
|
|
|
|
expect(game.coinsCalculator(6)).toBe(6);
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|