Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikeyburkman/eggnog-exampleapp
Example usage of eggnog
https://github.com/mikeyburkman/eggnog-exampleapp
Last synced: about 4 hours ago
JSON representation
Example usage of eggnog
- Host: GitHub
- URL: https://github.com/mikeyburkman/eggnog-exampleapp
- Owner: MikeyBurkman
- Created: 2014-12-20T18:57:50.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-08-22T19:38:55.000Z (about 9 years ago)
- Last Synced: 2023-04-29T10:20:05.502Z (over 1 year ago)
- Language: JavaScript
- Size: 254 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
eggnog-exampleapp
=================### Example usage of eggnog dependency injection.
`node index.js`
This starts up a small Express.js server
Navigate to http://localhost:3000 to see the readme for eggnog.
Navigate to http://localhost:3000/:user/:project, where user and project are a Github username and project. (For instance, http://localhost:3000/MikeyBurkman/eggnog)### Unit Testing
`mocha`
There is nothing special with how Mocha is run. (Assuming that Mocha is installed, of course.) Mocha will automatically scan the `test/` directory for tests.
In each test file, a TestContext is created, and the system under test (sut) is created with mock dependencies. Each test is then executed against that sut.
(Note: The unit tests are currently under work. Writing unit tests for files that use bluebird and request are not trivial.)