Update specs.

This commit is contained in:
Douwe Maan 2015-05-25 16:31:20 +02:00
parent 2fa5c7513e
commit a9e2686139

View file

@ -118,9 +118,11 @@ describe("ContributorsStatGraphUtil", function () {
describe("#add_author", function () { describe("#add_author", function () {
it("adds an author field to the collection", function () { it("adds an author field to the collection", function () {
var fake_author = { author_name: "Author", author_email: 'fake@email.com' } var fake_author = { author_name: "Author", author_email: 'fake@email.com' }
var fake_collection = {} var fake_author_collection = {}
ContributorsStatGraphUtil.add_author(fake_author, fake_collection) var fake_email_collection = {}
expect(fake_collection[fake_author.author_name].author_name).toEqual("Author") 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")
}) })
}) })