Using ddq-backend-mock module (#5)
Using ddq-backend-mock module (#5)

* Getting preliminary class for DDQ and files

Files help to be able to import module and set up for development.

* Making calls for checking for data

* Repo is ddq not what it was when copied

* Making so get message will get a message

* Getting preliminary heartbeat in place

* Mocking up required modules for testing

* Testing using the mock require module

* Getting tests to run for having coverage check work.

This was because we had a listener running which wouldn't let the test finish.

* Needed rename as this is testing ddq and not index.

* Getting tests for timer and listeners working

* Removing index as it isn't needed

* Getting code coverage up to 100% to make sure mocks and such work

The tests aren't working as properly as I'd like, so next commites will be getting tests to wrok with different scenarios.

* Committing to put code onto c9 to get help.

* Needed to offload some functionality to the plugin

The library shouldn't be polling on the data, the plugin should just tell the library it has data.

* Getting the functionality working for ddq.

This includes all of the basic functionality

* Examples to show how ddq works for sending messages and listening

* Need to inject code into ddq.

Makes testing easier and keeps thing tidier.

* Want to include the example backend in main code

* Don't need this anymore

* Don't want to include index in the coverage

Index doesn't do much besides bringing in required modules and injecting them in the ddq library.

* Test listener needs to be given data to be self contained

* Updating for comments

* Want to not show coverage for example script

* Getting better testing done and using mocks more.

* Cleaning up code to follow standards and name scenarios better.

* There were some formatting issues

* Getting 100% code coverage with a few branches outstanding

* Don't need to mock require anything anymore

* Don't need hostname anymore

The backend will handle the hostname as it's will be a guid

* Making sure we have 100% coverage and branches

* Needed to add back mock require to clear cache

* Putting back using eslint when testing

* cleaning up some titling and spy names

* Alphabetizing methods and fixing some eslint.

* Adding travis, code coverage and david-dm links

* Want to do travis testing and use multiple versions

* Needed heartbeatKill so the backend knows we are killing it

* Making sure we get rid of all listeners when we close connection

* Actually there aren't listeners here, so we don't need to worry.

* Adding instructions on usage and explaining how DDQ works.

* Going over README again to make it sound a little better

* First round of changes from code review

* Another run of changes

* These needed to be renamed to be more appropriate

* Correcting issue with config not being passed properly

* Correcting latest review comments.

* Wanted to have constants on their own line.

* Corrections from code review

* Adding to the explanations more

* Corrections from code review

* Fixing up test to use done

* Needed to add ddq-backend-mock plugin

tests-always-included/ddq