DECA-225: Refactor the mountApp and startServer functions to make it easier to test with having to start the server

Metadata

Source
DECA-225
Type
Task
Priority
Blocker
Status
Closed
Resolution
Fixed
Assignee
N/A
Reporter
Justin Obara
Created
2012-01-19T14:59:02.277-0500
Updated
2012-05-18T14:19:36.223-0400
Versions
N/A
Fixed Versions
  1. 0.5
Component
  1. Server

Description

Currently there is too much coupling between mountApp and startServer. To be able to start the server you have to mount an app and to be able to mount an app you have to get the resources from the startServer function. Move the resources into mountApp and return them, so that the startServer can use it. This will allow the unit test to just mount the app and not actually start the server.

Comments