Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

Frontend Testing Added #13

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
Draft

Commits on Dec 30, 2021

  1. Add Initial Test Files

    ValeriaLG committed Dec 30, 2021
    Configuration menu
    Copy the full SHA
    f19748a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    03a79d2 View commit details
    Browse the repository at this point in the history
  3. Cleaned up some files

    ValeriaLG committed Dec 30, 2021
    Configuration menu
    Copy the full SHA
    9a7461d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    02193a9 View commit details
    Browse the repository at this point in the history
  5. Made the unit tests more dynamic

    * Made it so that the tests check if it's in the same day before doing the test
    ValeriaLG committed Dec 30, 2021
    Configuration menu
    Copy the full SHA
    518c282 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c3ab756 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c2a6072 View commit details
    Browse the repository at this point in the history
  8. * Changed which panel a test was testing

    * Added another expect clause to the single panel first test
    * Added another test for unfiltered full panel display
    * Added a test to clear intervals
    ValeriaLG committed Dec 30, 2021
    Configuration menu
    Copy the full SHA
    4bf544d View commit details
    Browse the repository at this point in the history

Commits on Jan 1, 2022

  1. Adds Test for Other Files & Ignores A Few Lines

    * Adds initial test files to achieve 100 percent code coverage for Clock, Loading and Map
    * Adds a few instanbul ignore comments above the loading ternary statement due to it being unreachable but adding to the untested lines count and to the top of the cleanPanelInfoTimes function since the argument defaults add to multiple branches and removing the defaults doesn't lower code coverage
    ValeriaLG committed Jan 1, 2022
    Configuration menu
    Copy the full SHA
    12fcc16 View commit details
    Browse the repository at this point in the history
  2. Excluded Coverage from Files & Added Test for App.js

    * Excluded index.js, reportWebVitals.js, and setupTests.js from the code coverage report due to their irrelevance
    * Added a React import at the top of App.js
    * Added a test file for App.js called App.spec.js to just look and see if the component renders
    ValeriaLG committed Jan 1, 2022
    Configuration menu
    Copy the full SHA
    d4afe08 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a11317d View commit details
    Browse the repository at this point in the history
  4. Added & Changed Unit Tests

    * Added another unit test to advance timers in the app to see if the setInterval in Main changes what is displayed
    * Added another expect clause to Correc time & panel name is displayed to include a check for the panel name
    * Reset what is changed for the newly added unit test the unix times to what they originally were
    * Updated the checks date unit test in the Clock.spec.js file to have it's test updated with the current day since it was failing for any hard text days
    ValeriaLG committed Jan 1, 2022
    Configuration menu
    Copy the full SHA
    c878abd View commit details
    Browse the repository at this point in the history
  5. Added Jest.UseRealTimers into Tests

    * Added jest.useRealtimers in the afterEach parts of tests so that it's properly cleaned up between tests
    ValeriaLG committed Jan 1, 2022
    Configuration menu
    Copy the full SHA
    dd6b511 View commit details
    Browse the repository at this point in the history