• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

DaniSomoza / galactic-commander / 12444891208

21 Dec 2024 11:46AM UTC coverage: 52.036% (-13.6%) from 65.587%
12444891208

Pull #11

github

web-flow
Merge 9b5ea0e56 into 4f9f087f0
Pull Request #11: Build units

206 of 789 branches covered (26.11%)

Branch coverage included in aggregate %.

366 of 898 new or added lines in 85 files covered. (40.76%)

10 existing lines in 7 files now uncovered.

1417 of 2330 relevant lines covered (60.82%)

3.82 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

33.33
/packages/game-api-microservice/src/utils/cleanPlanetFields.ts
1
import { IPlanetDocument } from 'game-engine/models/PlanetModel'
2
import { IPlanet } from 'game-engine/types/IPlanet'
3

4
import { PlanetType } from '../types/Planet'
5

6
function cleanPlanetFields(planet: IPlanetDocument | IPlanet): PlanetType {
7
  const {
8
    name,
9
    universeId,
10
    imgUrl,
11
    ownerId,
12
    colonizedAt,
13
    resources,
14
    resourceQuality,
15
    lastResourceProductionTime,
16
    coordinates,
17
    isSpecial,
18
    isPrincipal,
19
    isUnderConquer,
20
    isExplored,
21
    specials,
22
    unitBuild,
23
    units
UNCOV
24
  } = planet
×
25

26
  return {
×
27
    name,
28
    universeId,
29
    imgUrl,
30
    ownerId,
31
    colonizedAt,
32
    resources,
33
    resourceQuality,
34
    lastResourceProductionTime,
35
    coordinates,
36
    isSpecial,
37
    isPrincipal,
38
    isUnderConquer,
39
    isExplored,
40
    specials,
41
    unitBuild,
42
    units
43
  }
44
}
45

46
export default cleanPlanetFields
2✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc