1- package forms_test
1+ package apiforms_test
22
33import (
44 "go-google-scraper-challenge/constants"
5- "go-google-scraper-challenge/lib/api/v1/forms"
5+ apiforms "go-google-scraper-challenge/lib/api/v1/forms"
66 . "go-google-scraper-challenge/test"
77
88 "github.com/bxcodec/faker/v3"
@@ -17,7 +17,7 @@ var _ = Describe("API Authentication Form", func() {
1717 authClient := FabricateAuthClient ()
1818 password := faker .Password ()
1919 user := FabricateUser (faker .Email (), password )
20- form := forms .AuthenticationForm {
20+ form := apiforms .AuthenticationForm {
2121 ClientID : authClient .ClientID ,
2222 ClientSecret : authClient .ClientSecret ,
2323 Email : user .Email ,
@@ -39,7 +39,7 @@ var _ = Describe("API Authentication Form", func() {
3939 authClient := FabricateAuthClient ()
4040 password := faker .Password ()
4141 user := FabricateUser (faker .Email (), password )
42- form := forms .AuthenticationForm {
42+ form := apiforms .AuthenticationForm {
4343 ClientID : "" ,
4444 ClientSecret : authClient .ClientSecret ,
4545 Email : user .Email ,
@@ -59,7 +59,7 @@ var _ = Describe("API Authentication Form", func() {
5959 authClient := FabricateAuthClient ()
6060 password := faker .Password ()
6161 user := FabricateUser (faker .Email (), password )
62- form := forms .AuthenticationForm {
62+ form := apiforms .AuthenticationForm {
6363 ClientID : authClient .ClientID ,
6464 ClientSecret : "" ,
6565 Email : user .Email ,
@@ -79,7 +79,7 @@ var _ = Describe("API Authentication Form", func() {
7979 authClient := FabricateAuthClient ()
8080 password := faker .Password ()
8181 user := FabricateUser (faker .Email (), password )
82- form := forms .AuthenticationForm {
82+ form := apiforms .AuthenticationForm {
8383 ClientID : authClient .ClientID ,
8484 ClientSecret : authClient .ClientSecret ,
8585 Email : user .Email ,
@@ -100,7 +100,7 @@ var _ = Describe("API Authentication Form", func() {
100100 authClient := FabricateAuthClient ()
101101 password := faker .Password ()
102102 FabricateUser (faker .Email (), password )
103- form := forms .AuthenticationForm {
103+ form := apiforms .AuthenticationForm {
104104 ClientID : authClient .ClientID ,
105105 ClientSecret : authClient .ClientSecret ,
106106 Email : "" ,
@@ -120,7 +120,7 @@ var _ = Describe("API Authentication Form", func() {
120120 authClient := FabricateAuthClient ()
121121 password := faker .Password ()
122122 FabricateUser (faker .Email (), password )
123- form := forms .AuthenticationForm {
123+ form := apiforms .AuthenticationForm {
124124 ClientID : authClient .ClientID ,
125125 ClientSecret : authClient .ClientSecret ,
126126 Email : "invalid" ,
@@ -141,7 +141,7 @@ var _ = Describe("API Authentication Form", func() {
141141 It ("returns an INVALID password error" , func () {
142142 authClient := FabricateAuthClient ()
143143 user := FabricateUser (faker .Email (), faker .Password ())
144- form := forms .AuthenticationForm {
144+ form := apiforms .AuthenticationForm {
145145 ClientID : authClient .ClientID ,
146146 ClientSecret : authClient .ClientSecret ,
147147 Email : user .Email ,
@@ -164,7 +164,7 @@ var _ = Describe("API Authentication Form", func() {
164164 It ("returns a user does not exist error" , func () {
165165 authClient := FabricateAuthClient ()
166166 user := FabricateUser (faker .Email (), faker .Password ())
167- form := forms .AuthenticationForm {
167+ form := apiforms .AuthenticationForm {
168168 ClientID : authClient .ClientID ,
169169 ClientSecret : authClient .ClientSecret ,
170170 Email : user .Email ,
@@ -181,7 +181,7 @@ var _ = Describe("API Authentication Form", func() {
181181 Context ("given email that does NOT belongs to any user" , func () {
182182 It ("returns a user does not exist error" , func () {
183183 authClient := FabricateAuthClient ()
184- form := forms .AuthenticationForm {
184+ form := apiforms .AuthenticationForm {
185185 ClientID : authClient .ClientID ,
186186 ClientSecret : authClient .ClientSecret ,
187187 Email : faker .Email (),
0 commit comments