summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-05-25 16:31:20 +0200
committerDouwe Maan <douwe@gitlab.com>2015-05-25 16:31:20 +0200
commita9e2686139fa4c7d5cd5f567854dc95627cc26a7 (patch)
tree6d6132decc4c8f0e3d068cc3c4800b81dd979690
parent2fa5c7513e77ecf990cdcf2d4fe7ecad82d8d7c9 (diff)
downloadgitlab-ce-commit-graphs-by-email.tar.gz
-rw-r--r--spec/javascripts/stat_graph_contributors_util_spec.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/javascripts/stat_graph_contributors_util_spec.js b/spec/javascripts/stat_graph_contributors_util_spec.js
index ee90892eb48..dbafe782b77 100644
--- a/spec/javascripts/stat_graph_contributors_util_spec.js
+++ b/spec/javascripts/stat_graph_contributors_util_spec.js
@@ -118,9 +118,11 @@ describe("ContributorsStatGraphUtil", function () {
describe("#add_author", function () {
it("adds an author field to the collection", function () {
var fake_author = { author_name: "Author", author_email: 'fake@email.com' }
- var fake_collection = {}
- ContributorsStatGraphUtil.add_author(fake_author, fake_collection)
- expect(fake_collection[fake_author.author_name].author_name).toEqual("Author")
+ var fake_author_collection = {}
+ var fake_email_collection = {}
+ ContributorsStatGraphUtil.add_author(fake_author, fake_author_collection, fake_email_collection)
+ expect(fake_author_collection[fake_author.author_name].author_name).toEqual("Author")
+ expect(fake_email_collection[fake_author.author_email].author_name).toEqual("Author")
})
})