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 class @ContributorsStatGraph
init: (log) -> init: (log) ->
@parsed_log = ContributorsStatGraphUtil.parse_log(log) @parsed_log = ContributorsStatGraphUtil.parse_log(log)

View file

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

View file

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

View file

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

View file

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