aboutsummaryrefslogtreecommitdiff
path: root/src/util
Commit message (Collapse)AuthorAgeFilesLines
* Add unit tests and correct CHANGELOGKevin J Hoerr2020-04-272-8/+186
|
* Handle promise errors in handleStartupKevin J Hoerr2020-04-271-35/+42
|
* These changes moved a lot of the startup async to run in a streamlinedKevin J Hoerr2020-04-262-6/+79
| | | | | | | | | | async init function. This brings more logic "to light", so it should probably have unit tests added to check the edge cases. As a bonus, no async runs as a result of route initialization. Speaking of routes, it might be nice to trim down the route calls themselves with async functions, if possible. The upload routes in particular use a lot of async. Just a note for the future.
* Use nullish-coalescing op for env var assignmentsKevin J Hoerr2019-12-121-1/+1
|
* Add unit tests for util/config.tsKevin J Hoerr2019-12-122-6/+154
|
* Finish developing unit tests for formats, loggerKevin J Hoerr2019-12-111-4/+41
|
* Add Jest to handle unit and integration testingKevin J Hoerr2019-12-112-10/+33
| | | | | | | | | | | | Wrote a couple of initial unit tests for some of the logic-heavy points in the application, being logger.ts and formats.ts. Evidently colorize() causes an error when transforming on the Format object that's returned. Since that is specific to the Console transport anyways, I just moved it to the transport, since the unit test was only testing the passed label in the returned Formats object. Also the bash template has some issues that I didn't test (oops), so those are fixed now.
* Fix reported license and update changelogKevin J Hoerr2019-12-101-3/+2
|
* Add linting to project using EslintKevin J Hoerr2019-12-092-9/+17
|
* Add winston, express-winston to handle loggingKevin J Hoerr2019-12-082-0/+59