gitlab-org--gitlab-foss/spec/javascripts/stat_graph_spec.js
Robert Speicher 662bdfbeb1 Make StatGraph JS explicitly require its dependencies
This allows us to test them in a bit more isolation.
2015-04-18 15:17:25 -04:00

19 lines
393 B
JavaScript

//= require stat_graph
describe("StatGraph", function () {
describe("#get_log", function () {
it("returns log", function () {
StatGraph.log = "test";
expect(StatGraph.get_log()).toBe("test");
});
});
describe("#set_log", function () {
it("sets the log", function () {
StatGraph.set_log("test");
expect(StatGraph.log).toBe("test");
})
})
});