Make StatGraph JS explicitly require its dependencies

This allows us to test them in a bit more isolation.
This commit is contained in:
Robert Speicher 2015-04-18 14:25:54 -04:00
parent d5c7b62b8e
commit 662bdfbeb1
5 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,7 @@
#= require d3
#= require jquery
#= require stat_graph_contributors_util
class @ContributorsStatGraph
init: (log) ->
@parsed_log = ContributorsStatGraphUtil.parse_log(log)

View File

@ -1,3 +1,7 @@
#= require d3
#= require jquery
#= require underscore
class @ContributorsGraph
MARGIN:
top: 20

View File

@ -1,3 +1,5 @@
//= require stat_graph_contributors_graph
describe("ContributorsGraph", function () {
describe("#set_x_domain", function () {
it("set the x_domain", function () {

View File

@ -1,3 +1,5 @@
//= require stat_graph_contributors_util
describe("ContributorsStatGraphUtil", function () {
describe("#parse_log", function () {

View File

@ -1,3 +1,5 @@
//= require stat_graph
describe("StatGraph", function () {
describe("#get_log", function () {