diff --git a/css/style.css b/css/style.css index c9e4c9a..f165a25 100644 --- a/css/style.css +++ b/css/style.css @@ -1,6 +1,6 @@ -@font-face { - font-family: travelingTypewriter; - src: url(../TravelingTypewriter.ttf); +body { + font-family: Verdana, Geneva, Tahoma, sans-serif; + font-size: 0.8em; } * { @@ -32,8 +32,6 @@ h2 { } #container { - font-size: 12px; - font-family: travelingTypewriter; color: #ffffff; padding: 0.7em; width: 100%; diff --git a/package.json b/package.json index 6233227..6894459 100644 --- a/package.json +++ b/package.json @@ -38,17 +38,14 @@ "@babel/core": "^7.14.6", "@babel/preset-env": "^7.14.5", "@babel/preset-typescript": "^7.14.5", - "@types/jest": "^24.0.22", "babel-jest": "^24.9.0", "babel-plugin-transform-class-properties": "^6.24.1", "cssnano": "^4.1.11", "gh-pages": "^2.0.1", - "jest": "^24.9.0", "parcel": "^1.12.4", "parcel-bundler": "^1.12.5", "parcel-plugin-static-files-copy": "^2.6.0", "parcel-plugin-sw-cache": "^0.3.1", - "ts-jest": "^26.5.6", "typescript": "^3.9.10" }, "browserslist": [ diff --git a/src/managers/SkillCheckManager.ts b/src/managers/SkillCheckManager.ts index 66662ef..226cadf 100644 --- a/src/managers/SkillCheckManager.ts +++ b/src/managers/SkillCheckManager.ts @@ -137,7 +137,7 @@ export class SkillCheckManager { this._firstDice.classList.remove('red-color'); this._secondDice.classList.remove('red-color'); - this._resultLabel.innerHTML = '[ CRITICIAL SUCCESS ]'; + this._resultLabel.innerHTML = ' CRITICIAL SUCCESS '; this._resultLabel.style.fontSize = '1.3em'; this._resultLabel.classList.remove('red-color'); this._resultLabel.classList.add('green-color'); @@ -154,7 +154,7 @@ export class SkillCheckManager { this._firstDice.classList.remove('red-color'); this._secondDice.classList.remove('red-color'); - this._resultLabel.innerHTML = '[ SUCCESS ]'; + this._resultLabel.innerHTML = ' SUCCESS '; this._resultLabel.style.fontSize = '2.5em'; this._resultLabel.classList.remove('red-color'); this._resultLabel.classList.add('green-color'); @@ -171,7 +171,7 @@ export class SkillCheckManager { this._firstDice.classList.add('red-color'); this._secondDice.classList.add('red-color'); - this._resultLabel.innerHTML = '[ CRITICIAL FAILURE ]'; + this._resultLabel.innerHTML = ' CRITICIAL FAILURE '; this._resultLabel.style.fontSize = '1.3em'; this._resultLabel.classList.add('red-color'); this._resultLabel.classList.remove('green-color'); @@ -188,7 +188,7 @@ export class SkillCheckManager { this._firstDice.classList.remove('red-color'); this._secondDice.classList.remove('red-color'); - this._resultLabel.innerHTML = '[ FAILURE ]'; + this._resultLabel.innerHTML = ' FAILURE '; this._resultLabel.style.fontSize = '2.5em'; this._resultLabel.classList.add('red-color'); this._resultLabel.classList.remove('green-color'); diff --git a/tests/character.test.ts b/tests/character.test.ts deleted file mode 100644 index f1de243..0000000 --- a/tests/character.test.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { Character } from '../src/entities/Character'; - -let buildCharacter = () => new Character('Ethan', - 5, - 'father', - true, - 0, 0, false, 0, 5); - -test('Character should loose 1 health point', () => { - let character = buildCharacter(); - character.looseHealth(1); - expect(character.health).toBe(4); -}); - -test('Throw error when health to loose value is invalid', () => { - let character = buildCharacter(); - expect(() => { - character.looseHealth(-1); - }).toThrow(new Error('Invalid value for healthToLoose')); -}); - -test('Character should die when loose all health', () => { - let character = buildCharacter(); - character.looseHealth(character.maxHealth); - expect(character.isDead).toBe(true); -}); - -test('Character should increase hungry by one', () => { - let character = buildCharacter(); - character.increaseHungry(); - expect(character.health).toBe(1); -}) \ No newline at end of file