Update specs.
This commit is contained in:
parent
2fa5c7513e
commit
a9e2686139
1 changed files with 5 additions and 3 deletions
|
@ -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")
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue