Skip to content

Commit 4e1d2af

Browse files
committed
For Chapter 18
1 parent bce8bf5 commit 4e1d2af

File tree

8 files changed

+396
-113
lines changed

8 files changed

+396
-113
lines changed

chapter-18/starships/controllers/ships.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const ShipsModel = require('../models/ships')
22

3-
const TORPEDO_DAMAGE = 125
3+
const TORPEDO_DAMAGE = 75
44

55
const calculateDamage = (ship1, ship2, weapon) => {
66
const distanceBetweenShips = Math.sqrt(Math.pow(ship2.x - ship1.x, 2) + Math.pow(ship2.y - ship1.y, 2) + Math.pow(ship2.z - ship1.z, 2))
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
preset: '@shelf/jest-mongodb'
2+
preset: "jest-puppeteer"
33
};

0 commit comments

Comments
 (0)