Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
unit(component): restructure list of emails
Browse files Browse the repository at this point in the history
  • Loading branch information
lemredd committed Nov 22, 2022
1 parent 7a4756e commit f3f6413
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions components/authentication/log_in_form.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,9 @@ describe("Component: Log In Form", () => {

it("can list the first 3 admin emails", async() => {
const listOfAdminEmails = [
{
"email": "sample1@email.com"
},
{
"email": "sample2@email.com"
},
{
"email": "sample3@email.com"
}
"sample1@email.com",
"sample2@email.com",
"sample3@email.com"
]

const wrapper = shallowMount(Component, {
Expand All @@ -135,7 +129,7 @@ describe("Component: Log In Form", () => {

const contacts = wrapper.findAll(".contact")
contacts.forEach(
(contact, index) => expect(contact.text()).toEqual(listOfAdminEmails[index].email)
(contact, index) => expect(contact.text()).toEqual(listOfAdminEmails[index])
)
})
})

0 comments on commit f3f6413

Please sign in to comment.