SJRK-426: Add tests for database functions

Metadata

Source
SJRK-426
Type
Task
Priority
Major
Status
Open
Resolution
N/A
Assignee
N/A
Reporter
Gregor Moss
Created
2020-11-13T11:07:18.732-0500
Updated
2020-12-13T17:39:57.794-0500
Versions
N/A
Fixed Versions
N/A
Component
  1. Storytelling Tool Server

Description

Add tests for the functions contained within the database setup script file: story-dbConfiguration.js

There are some small functions in the DB setup script that represent CouchDB view functions, though unfortunately those functions are not currently covered by any tests. This is especially pertinent after SJRK-425.

Comments

  • Gregor Moss commented 2020-12-13T17:39:57.794-0500

    When this is tackled, care should be taken to configure nyc to include the DB functions, as the work of SJRK-405 excludes them