Make StatGraph JS explicitly require its dependencies
This allows us to test them in a bit more isolation.
This commit is contained in:
parent
d5c7b62b8e
commit
662bdfbeb1
5 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
#= require d3
|
||||
#= require jquery
|
||||
#= require stat_graph_contributors_util
|
||||
|
||||
class @ContributorsStatGraph
|
||||
init: (log) ->
|
||||
@parsed_log = ContributorsStatGraphUtil.parse_log(log)
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
#= require d3
|
||||
#= require jquery
|
||||
#= require underscore
|
||||
|
||||
class @ContributorsGraph
|
||||
MARGIN:
|
||||
top: 20
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//= require stat_graph_contributors_graph
|
||||
|
||||
describe("ContributorsGraph", function () {
|
||||
describe("#set_x_domain", function () {
|
||||
it("set the x_domain", function () {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//= require stat_graph_contributors_util
|
||||
|
||||
describe("ContributorsStatGraphUtil", function () {
|
||||
|
||||
describe("#parse_log", function () {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//= require stat_graph
|
||||
|
||||
describe("StatGraph", function () {
|
||||
|
||||
describe("#get_log", function () {
|
||||
|
|
Loading…
Reference in a new issue