@@ -31,7 +31,7 @@ void main() {
3131 final date = DateTime .now ().millisecondsSinceEpoch;
3232 final identifier =
3333 'authentigator+$date @${MailosaurAPIClient .serverId }.mailosaur.net' ;
34- await passage.magliclink .register (identifier);
34+ await passage.magiclink .register (identifier);
3535 } catch (e) {
3636 fail (
3737 'Expected to send a register magic link, but got an exception: $e ' );
@@ -40,7 +40,7 @@ void main() {
4040
4141 test ('testRegisterExistingUserMagicLink' , () async {
4242 try {
43- await passage.magliclink .register (
43+ await passage.magiclink .register (
4444 IntegrationTestConfig .existingUserEmailMagicLink);
4545 fail ('Expected PassageError but got success' );
4646 } catch (e) {
@@ -54,7 +54,7 @@ void main() {
5454
5555 test ('testRegisterInvalidEmailAddressFormatMagicLink' , () async {
5656 try {
57- await passage.magliclink .register ('invalid' );
57+ await passage.magiclink .register ('invalid' );
5858 fail ('Expected PassageError but got success' );
5959 } catch (e) {
6060 if (e is PassageError ) {
@@ -68,15 +68,15 @@ void main() {
6868 test ('testSendLoginMagicLink' , () async {
6969 try {
7070 const identifier = IntegrationTestConfig .existingUserEmailMagicLink;
71- await passage.magliclink .login (identifier);
71+ await passage.magiclink .login (identifier);
7272 } catch (e) {
7373 fail ('Expected to send a login magic link, but got an exception: $e ' );
7474 }
7575 });
7676
7777 test ('testInvalidLoginMagicLink' , () async {
7878 try {
79- await passage.magliclink .login ('Invalid@invalid.com' );
79+ await passage.magiclink .login ('Invalid@invalid.com' );
8080 fail ('Expected PassageError but got success' );
8181 } catch (e) {
8282 if (e is PassageError ) {
@@ -92,14 +92,14 @@ void main() {
9292 final date = DateTime .now ().millisecondsSinceEpoch;
9393 final identifier =
9494 'authentigator+$date @${MailosaurAPIClient .serverId }.mailosaur.net' ;
95- await passage.magliclink .register (identifier);
95+ await passage.magiclink .register (identifier);
9696 await Future .delayed (const Duration (
9797 milliseconds: IntegrationTestConfig .waitTimeMilliseconds));
9898 final magicLinkStr = await MailosaurAPIClient .getMostRecentMagicLink ();
9999 if (magicLinkStr.isEmpty) {
100100 fail ('Test failed: Magic link is empty' );
101101 }
102- await passage.magliclink .activate (magicLinkStr);
102+ await passage.magiclink .activate (magicLinkStr);
103103 } catch (e) {
104104 fail (
105105 'Expected to activate register magic link, but got an exception: $e ' );
@@ -108,25 +108,25 @@ void main() {
108108
109109 test ('testActivateLoginMagicLink' , () async {
110110 try {
111- await passage.magliclink .login (
111+ await passage.magiclink .login (
112112 IntegrationTestConfig .existingUserEmailMagicLink);
113113 await Future .delayed (const Duration (
114114 milliseconds: IntegrationTestConfig .waitTimeMilliseconds));
115115 final magicLinkStr = await MailosaurAPIClient .getMostRecentMagicLink ();
116116 if (magicLinkStr.isEmpty) {
117117 fail ('Test failed: Magic link is empty' );
118118 }
119- await passage.magliclink .activate (magicLinkStr);
119+ await passage.magiclink .activate (magicLinkStr);
120120 } catch (e) {
121121 fail ('Expected to activate login magic link, but got an exception: $e ' );
122122 }
123123 });
124124
125125 test ('testActivateInvalidMagicLink' , () async {
126126 try {
127- await passage.magliclink .register (
127+ await passage.magiclink .register (
128128 'authentigator+invalid@${MailosaurAPIClient .serverId }.mailosaur.net' );
129- await passage.magliclink .activate ('Invalid' );
129+ await passage.magiclink .activate ('Invalid' );
130130 fail ('Expected PassageError but got success' );
131131 } catch (e) {
132132 if (e is PassageError ) {
@@ -139,15 +139,15 @@ void main() {
139139
140140 test ('testActivateDeactivatedUserMagicLink' , () async {
141141 try {
142- await passage.magliclink .login (
142+ await passage.magiclink .login (
143143 IntegrationTestConfig .deactivatedUserEmailMagicLink);
144144 await Future .delayed (const Duration (
145145 milliseconds: IntegrationTestConfig .waitTimeMilliseconds));
146146 final magicLinkStr = await MailosaurAPIClient .getMostRecentMagicLink ();
147147 if (magicLinkStr.isEmpty) {
148148 fail ('Test failed: Magic link is empty' );
149149 }
150- await passage.magliclink .activate (magicLinkStr);
150+ await passage.magiclink .activate (magicLinkStr);
151151 fail ('Expected PassageError but got success' );
152152 } catch (e) {
153153 if (e is PassageError ) {
0 commit comments