diff --git a/test/modules/login/login_interactor_test.dart b/test/modules/login/login_interactor_test.dart index 4f7f582..3bdc42d 100644 --- a/test/modules/login/login_interactor_test.dart +++ b/test/modules/login/login_interactor_test.dart @@ -31,7 +31,7 @@ void main() { interactor.delegate = delegate; }); - describe("it's login() is called", () { + describe("its login() is called", () { context("when success", () { beforeEach(() { when(authRepository.login( diff --git a/test/modules/login/login_module_test.dart b/test/modules/login/login_module_test.dart index c58306b..46be578 100644 --- a/test/modules/login/login_module_test.dart +++ b/test/modules/login/login_module_test.dart @@ -13,7 +13,7 @@ void main() { module = LoginModule(); }); - context("it's build() is called", () { + context("its build() is called", () { late Widget widget; beforeEach(() { diff --git a/test/modules/login/login_presenter_test.dart b/test/modules/login/login_presenter_test.dart index 209bd30..bb9d282 100644 --- a/test/modules/login/login_presenter_test.dart +++ b/test/modules/login/login_presenter_test.dart @@ -25,7 +25,7 @@ void main() { presenter.configure(view: view, interactor: interactor, router: router); }); - describe("it's didChangeEmailText and didChangePasswordText emit", () { + describe("its didChangeEmailText and didChangePasswordText emit", () { context("when one of them is emptied", () { beforeEach(() { presenter.passwordTextFieldDidChange.add(""); @@ -49,7 +49,7 @@ void main() { }); }); - describe("it's didInitState emits", () { + describe("its didInitState emits", () { beforeEach(() { presenter.stateDidInit.add(null); }); @@ -60,7 +60,7 @@ void main() { }); }); - describe("it's didTapForgotButton emits", () { + describe("its didTapForgotButton emits", () { beforeEach(() { presenter.forgotButtonDidTap.add(null); }); @@ -70,7 +70,7 @@ void main() { }); }); - describe("it's didTapLoginButton emits", () { + describe("its didTapLoginButton emits", () { beforeEach(() { presenter.loginButtonDidTap.add(["", ""]); }); @@ -84,7 +84,7 @@ void main() { }); }); - describe("it's didLogin emits", () { + describe("its didLogin emits", () { beforeEach(() { presenter.didLogin.add(null); }); @@ -94,7 +94,7 @@ void main() { }); }); - describe("it's didFailToLogin emits", () { + describe("its didFailToLogin emits", () { final error = Exception(); beforeEach(() { presenter.didFailToLogin.add(error); diff --git a/test/modules/login/login_router_test.dart b/test/modules/login/login_router_test.dart index a1b6727..361b961 100644 --- a/test/modules/login/login_router_test.dart +++ b/test/modules/login/login_router_test.dart @@ -27,7 +27,7 @@ void main() { router = LoginRouterImpl(); }); - describe("it's replaceToHomeScreen() is called", () { + describe("its replaceToHomeScreen() is called", () { beforeEach(() { router.replaceToHomeScreen(buildContext); }); @@ -37,7 +37,7 @@ void main() { }); }); - describe("it's pushToForgotPasswordScreen() is called", () { + describe("its pushToForgotPasswordScreen() is called", () { beforeEach(() { router.pushToForgotPasswordScreen(buildContext); }); diff --git a/test/modules/login/login_view_test.dart b/test/modules/login/login_view_test.dart index 5785bdf..89aace9 100644 --- a/test/modules/login/login_view_test.dart +++ b/test/modules/login/login_view_test.dart @@ -57,7 +57,7 @@ void main() { }); }); - describe("it's beginAnimation() is called", () { + describe("its beginAnimation() is called", () { beforeEach((tester) async { await tester.pumpModule(module); module.view.beginAnimation(); @@ -75,7 +75,7 @@ void main() { }); }); - describe("it's showProgressHUD() is called", () { + describe("its showProgressHUD() is called", () { beforeEach((tester) async { await tester.pumpModule(module); module.view.showProgressHUD(); @@ -89,7 +89,7 @@ void main() { }); }); - describe("it's dismissProgressHUD() is called", () { + describe("its dismissProgressHUD() is called", () { beforeEach((tester) async { await tester.pumpModule(module); module.view.dismissProgressHUD(); @@ -103,7 +103,7 @@ void main() { }); }); - describe("it's setLoginButton() is called", () { + describe("its setLoginButton() is called", () { context("isEnabled is true", () { beforeEach((tester) async { await tester.pumpModule(module); @@ -133,7 +133,7 @@ void main() { }); }); - describe("it's alert() is called", () { + describe("its alert() is called", () { const message = "a message"; beforeEach((tester) async { await tester.pumpModule(module); @@ -146,7 +146,7 @@ void main() { }); }); - describe("it's email text field is changed", () { + describe("its email text field is changed", () { const text = "a text"; beforeEach((tester) async { await tester.pumpModule(module); @@ -159,7 +159,7 @@ void main() { }); }); - context("it's password text field is changed", () { + context("its password text field is changed", () { const text = "a text"; beforeEach((tester) async { await tester.pumpModule(module); @@ -173,7 +173,7 @@ void main() { }); }); - context("it's login button is tapped", () { + context("its login button is tapped", () { beforeEach((tester) async { await tester.pumpModule(module); module.view.setLoginButton(isEnabled: true); @@ -187,7 +187,7 @@ void main() { }); }); - context("it's forgot button is tapped", () { + context("its forgot button is tapped", () { beforeEach((tester) async { await tester.pumpModule(module); await tester.pumpAndSettle();