Skip to content

Commit

Permalink
fix tests to use signup over register
Browse files Browse the repository at this point in the history
  • Loading branch information
eessex committed Mar 9, 2020
1 parent a9148b7 commit 134cd54
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Expand Up @@ -58,7 +58,7 @@ describe("FollowArtistButton", () => {
component.find(FollowButtonDeprecated).simulate("click")
const args = testProps.onOpenAuthModal.mock.calls[0]

expect(args[0]).toBe("register")
expect(args[0]).toBe("signup")
expect(args[1].contextModule).toBe("intext tooltip")
expect(args[1].intent).toBe("follow artist")
expect(args[1].copy).toBe("Sign up to follow artists")
Expand Down
Expand Up @@ -54,7 +54,7 @@ describe("FollowGeneButton", () => {
component.find(FollowButtonDeprecated).simulate("click")
const args = testProps.onOpenAuthModal.mock.calls[0]

expect(args[0]).toBe("register")
expect(args[0]).toBe("signup")
expect(args[1].contextModule).toBe("intext tooltip")
expect(args[1].intent).toBe("follow gene")
expect(args[1].copy).toBe("Sign up to follow categories")
Expand Down
Expand Up @@ -89,7 +89,7 @@ describe("ArtistToolTip", () => {
component.find(FollowArtistButton).simulate("click")
const args = context.onOpenAuthModal.mock.calls[0]

expect(args[0]).toBe("register")
expect(args[0]).toBe("signup")
expect(args[1].contextModule).toBe("intext tooltip")
expect(args[1].intent).toBe("follow artist")
})
Expand Down
Expand Up @@ -48,7 +48,7 @@ describe("GeneTooltip", () => {
component.find(FollowGeneButton).simulate("click")
const args = context.onOpenAuthModal.mock.calls[0]

expect(args[0]).toBe("register")
expect(args[0]).toBe("signup")
expect(args[1].contextModule).toBe("intext tooltip")
expect(args[1].intent).toBe("follow gene")
})
Expand Down

0 comments on commit 134cd54

Please sign in to comment.