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

ProjektAdLer / 2D_3D_AdLer / #1254

26 Jun 2025 08:45AM UTC coverage: 96.951% (-0.04%) from 96.988%
#1254

push

lukaio3D
styled ExperiencePointsPanel in LearningSpaceMenu

2372 of 2769 branches covered (85.66%)

1 of 1 new or added line in 1 file covered. (100.0%)

21 existing lines in 7 files now uncovered.

5469 of 5641 relevant lines covered (96.95%)

51.99 hits per line

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

75.0
/src/Components/Core/Presentation/React/GeneralComponents/MenuHeaderBar/MenuHeaderBarPresenter.ts
1
import LearningWorldTO from "src/Components/Core/Application/DataTransferObjects/LearningWorldTO";
2
import { GradingStyle } from "src/Components/Core/Domain/Types/GradingStyle";
3
import PointBasedDisplay from "../../../Utils/ElementCompletionDisplay/PointBasedDisplay";
4
import IMenuHeaderBarPresenter from "./IMenuHeaderBarPresenter";
5
import MenuHeaderBarViewModel from "./MenuHeaderBarViewModel";
6

7
export default class MenuHeaderBarPresenter implements IMenuHeaderBarPresenter {
8
  constructor(private viewModel: MenuHeaderBarViewModel) {}
9

10
  onLearningWorldLoaded(world: LearningWorldTO): void {
11
    this.viewModel.currentWorldName.Value = world.name;
1✔
12
    if (world.gradingStyle instanceof PointBasedDisplay) {
1!
UNCOV
13
      this.viewModel.gradingStyle.Value = GradingStyle.point;
×
14
    } else {
15
      this.viewModel.gradingStyle.Value = GradingStyle.requirement;
1✔
16
    }
17
  }
18
}
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