From 71d67e6557acb1ce3beeec2c2c6deb35015bd8bb Mon Sep 17 00:00:00 2001 From: Karlo Soriano Date: Thu, 9 May 2013 13:00:56 +0800 Subject: Contributors graphs feature for GitLab Created tests and refactored some code along the way Added stat graph util spec, refactored code finsihed up tests and refactors finsihed up tests and refactors --- spec/javascripts/stat_graph_spec.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 spec/javascripts/stat_graph_spec.js (limited to 'spec/javascripts/stat_graph_spec.js') diff --git a/spec/javascripts/stat_graph_spec.js b/spec/javascripts/stat_graph_spec.js new file mode 100644 index 00000000000..b8881769ac1 --- /dev/null +++ b/spec/javascripts/stat_graph_spec.js @@ -0,0 +1,17 @@ +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"); + }) + }) + +}); \ No newline at end of file -- cgit v1.2.1