Update tests to properly terminate (#255)
Update tests to properly terminate (#255)

Which problem is this PR solving?
Cleans up two tests so that jest doesn't complain that some tests were failing to close sockets
Short description of the changes
Destroy a socket rather than close it because the socket was waiting for an acknowledgement that would never come
Adjust timeout so that server closes before jest gets bored
Call done() from within close() so that it has time to close.
Note that the standard formatting has changed a bit in the last 4 years, so this includes some whitespace changes due to eslint.

@jessitron contributed a lot to figuring this out.
honeycombio/libhoney-js