1. 24 Dec, 2020 3 commits
    • Eulyeon Ko's avatar
      Apply reviewer and maintainer suggestions · 4bb58c14
      Eulyeon Ko authored
      Place 'dateFromString' helper function in
        spec/frontend/helpers/datetime_helpers.js
      
      Use realistic mock data and place them in mock_data.js
      4bb58c14
    • Eulyeon Ko's avatar
      Apply reviewer suggestions · 2040ed19
      Eulyeon Ko authored
      Fix capitalization for test case name.
      
      Use test inputs that resemble the actual use cases.
      
      Use parameterization on 'it' blocks.
      2040ed19
    • Eulyeon Ko's avatar
      Move getter methods into roadmap_item_utils.js · 9b7630ff
      Eulyeon Ko authored
      The following getters have been only used in the context
      of initializing fetched raw data using the functions from
      roadmap_item_utils.js:
      
      getters.lastTimeframeIndex
      getters.timeframeStartDate
      getters.timeframeEndDate
      
      Having these coupled to vuex makes it hard to generate-
      mock data needed for testing, thus we are moving them
      into roadmap_item_utils.js to use as pure helper functions.
      9b7630ff
  2. 23 Dec, 2020 37 commits