Commit a9e26861 authored by Douwe Maan's avatar Douwe Maan

Update specs.

parent 2fa5c751
......@@ -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")
})
})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment