Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 constructor-injection
Octocat-spinner-32 mocks
Octocat-spinner-32 node_modules
Octocat-spinner-32 require-injection
Octocat-spinner-32 setter-injection
Octocat-spinner-32 README.md
Octocat-spinner-32 index.js
Octocat-spinner-32 package.json
Octocat-spinner-32 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.