summaryrefslogtreecommitdiff
path: root/spec/javascripts/graphs/stat_graph_spec.js
diff options
context:
space:
mode:
authorZ.J. van de Weg <zegerjan@gitlab.com>2016-06-03 15:20:11 +0200
committerZ.J. van de Weg <zegerjan@gitlab.com>2016-06-03 15:20:11 +0200
commit9d491712cfe33286329524fb39dc5bf8e4c8affd (patch)
tree0e99ae15e613d5971ba9e7c7ffcdd51e37a2f725 /spec/javascripts/graphs/stat_graph_spec.js
parentfab695461afbc4d03fbbf8cfbf9c5d90760ce752 (diff)
parentca3c5c295ed653b483fe81c3918ffe60f46666b9 (diff)
downloadgitlab-ce-awardables.tar.gz
Merge branch 'master' into awardablesawardables
Diffstat (limited to 'spec/javascripts/graphs/stat_graph_spec.js')
-rw-r--r--spec/javascripts/graphs/stat_graph_spec.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/javascripts/graphs/stat_graph_spec.js b/spec/javascripts/graphs/stat_graph_spec.js
new file mode 100644
index 00000000000..4b05d401a42
--- /dev/null
+++ b/spec/javascripts/graphs/stat_graph_spec.js
@@ -0,0 +1,19 @@
+//= require graphs/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");
+ })
+ })
+
+});