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

projektiryhma / lukina / 22797054983

07 Mar 2026 10:08AM UTC coverage: 56.219% (-11.7%) from 67.879%
22797054983

push

github

web-flow
Merge pull request #17 from projektiryhma/GamePageGameOne

Game page game one and phase one demo

23 of 53 branches covered (43.4%)

Branch coverage included in aggregate %.

1 of 28 new or added lines in 3 files covered. (3.57%)

3 existing lines in 1 file now uncovered.

90 of 148 relevant lines covered (60.81%)

1.3 hits per line

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

11.11
/src/components/GameOnePhaseOne.js
1
import PropTypes from "prop-types";
2
import { useNavigate } from "react-router-dom";
3
import "./GameOnePhaseOne.css";
4

5
export function GameOnePhaseOne({ data }) {
NEW
6
  const navigate = useNavigate();
×
NEW
7
  if (!data) return <p>No data</p>;
×
8

NEW
9
  const text = data["Virheellinen teksti, virheet punaisella"];
×
NEW
10
  const amountoferror = data["Virheiden lukumäärä tekstissä"];
×
11

NEW
12
  return (
×
13
    <div className="phase-one">
14
      <button
NEW
15
        onClick={() => navigate("/InfoPageGameOne")}
×
16
        className="BackToButton"
17
      >
18
        &lt; Edellinen
19
      </button>
20
      <h2 className="PhaseOneHeader">Etsi ja korjaa</h2>
21
      <p className="GameData">{text}</p>
22
      <p>
23
        Virheitä: <strong>{amountoferror}</strong>
24
      </p>
25
    </div>
26
  );
27
}
28

29
GameOnePhaseOne.propTypes = {
1✔
30
  data: PropTypes.shape({
31
    "Virheellinen teksti, virheet punaisella": PropTypes.string,
32
    "Virheiden lukumäärä tekstissä": PropTypes.number,
33
  }).isRequired,
34
};
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