Skip to content

Files

Latest commit

a9caff0 · Apr 8, 2022

History

History

test

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jul 29, 2020
Mar 24, 2022
Nov 7, 2014
Jul 29, 2020
Jul 29, 2020
Jul 29, 2020
Jul 29, 2020
Apr 7, 2022
Jul 29, 2020
Feb 2, 2021
May 11, 2021
Jul 29, 2020
May 6, 2021
Jul 29, 2020
Jul 29, 2020
Apr 8, 2022
Jul 29, 2020
Mar 24, 2022
Mar 24, 2022
Mar 24, 2022
Mar 24, 2022
Jul 29, 2020
Jul 29, 2020
Jul 29, 2020
Jul 29, 2020
Jul 29, 2020
Jul 29, 2020
Jul 29, 2020
Jul 29, 2020
Jul 29, 2020
Jul 29, 2020
Jul 29, 2020
Jul 29, 2020
Jul 29, 2020
Jul 29, 2020
Jul 29, 2020
Jul 29, 2020
Jul 29, 2020
Jul 29, 2020
To run these tests, do the following first:

1) In mysql, execute the following to create the test database and esdr user:

      CREATE DATABASE IF NOT EXISTS esdr_test;
      GRANT ALL PRIVILEGES ON esdr_test.* To 'esdr_test'@'localhost' IDENTIFIED BY 'password';
      GRANT SELECT,INSERT,UPDATE,DELETE,CREATE ON esdr_test.* TO 'esdr_test'@'localhost';

2) Run the server in test mode, like this:

      NODE_ENV=test npm start

   In test mode, the server runs on port 3001, so make sure you don't have anything else
   running on that port.

3) Run the tests:

      npm test