Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
constructor-injection
mocks
node_modules
require-injection
setter-injection
README.md
index.js
package.json
test.js

README.md

Example of manual dependency injection

This example repo show cases three different types of dependency injection

  • setter injection
  • constructor injection
  • require injection

It also shows what the test and code looks like without any dependency injection

Something went wrong with that request. Please try again.