diff --git a/test/modules/forgot_password/forgot_password_interactor_test.dart b/test/modules/forgot_password/forgot_password_interactor_test.dart index 260bc66b..1ef0f888 100644 --- a/test/modules/forgot_password/forgot_password_interactor_test.dart +++ b/test/modules/forgot_password/forgot_password_interactor_test.dart @@ -32,7 +32,7 @@ void main() { interactor.delegate = delegate; }); - describe("its resetPassword is called", () { + describe("its resetPassword() is called", () { context("when authRepository's resetPassword return success", () { beforeEach(() { when(authRepository.resetPassword(email: anyNamed("email"))) @@ -40,7 +40,7 @@ void main() { interactor.resetPassword(email: "email"); }); - it("trigger delegate's passwordDidReset emits", () { + it("trigger delegate's passwordDidReset to emit", () { expect(delegate.passwordDidReset, emits(null)); }); }); @@ -53,7 +53,7 @@ void main() { interactor.resetPassword(email: "email"); }); - it("trigger delegate's passwordDidFailToReset emits", () { + it("trigger delegate's passwordDidFailToReset to emit", () { expect(delegate.passwordDidFailToReset, emits(exception)); }); }); diff --git a/test/modules/forgot_password/forgot_password_view_test.dart b/test/modules/forgot_password/forgot_password_view_test.dart index d24f4b61..e75ab2e8 100644 --- a/test/modules/forgot_password/forgot_password_view_test.dart +++ b/test/modules/forgot_password/forgot_password_view_test.dart @@ -147,7 +147,7 @@ void main() { await tester.tap(find.byKey(ForgotPasswordView.resetButtonKey)); }); - it("triggers delegate's resetButtonDidTap emits", (tester) async { + it("triggers delegate's resetButtonDidTap to emit", (tester) async { expect(delegate.resetButtonDidTap, emits("")); }); }); @@ -159,7 +159,7 @@ void main() { find.byKey(ForgotPasswordView.emailTextFieldKey), text); }); - it("triggers delegate's emailTextFieldDidChange emits", (tester) async { + it("triggers delegate's emailTextFieldDidChange to emit", (tester) async { expect(delegate.emailTextFieldDidChange, emits(text)); }); }); diff --git a/test/modules/home/home_module_test.dart b/test/modules/home/home_module_test.dart index 3e7e040e..2250a6f1 100644 --- a/test/modules/home/home_module_test.dart +++ b/test/modules/home/home_module_test.dart @@ -12,7 +12,7 @@ void main() { module = HomeModule(); }); - describe("its build is called", () { + describe("its build() is called", () { late Widget widget; beforeEach(() { diff --git a/test/modules/home/home_presenter_test.dart b/test/modules/home/home_presenter_test.dart index 4cca2c1c..1782de1c 100644 --- a/test/modules/home/home_presenter_test.dart +++ b/test/modules/home/home_presenter_test.dart @@ -172,7 +172,7 @@ void main() { }); }); - describe("it's sideMenuDidShow emits", () { + describe("its sideMenuDidShow emits", () { beforeEach(() { presenter.sideMenuDidShow.add(null); }); @@ -182,7 +182,7 @@ void main() { }); }); - describe("it's sideMenuDidDismiss emits", () { + describe("its sideMenuDidDismiss emits", () { beforeEach(() { presenter.sideMenuDidDismiss.add(null); }); @@ -192,7 +192,7 @@ void main() { }); }); - describe("it's userAvatarButtonDidTap emits", () { + describe("its userAvatarButtonDidTap emits", () { beforeEach(() { presenter.userAvatarButtonDidTap.add(null); }); diff --git a/test/modules/home/home_view_test.dart b/test/modules/home/home_view_test.dart index 3300fa42..1b97f3f0 100644 --- a/test/modules/home/home_view_test.dart +++ b/test/modules/home/home_view_test.dart @@ -245,14 +245,14 @@ void main() { }); }); - describe("it's showSideMenu() is called", () { + describe("its showSideMenu() is called", () { beforeEach((tester) async { await tester.pumpAndSettle(); module.view.showSideMenu(); await tester.pumpAndSettle(); }); - it("triggers delegate's sideMenuDidShow emits", (tester) async { + it("triggers delegate's sideMenuDidShow to emit", (tester) async { expect(delegate.sideMenuDidShow, emits(null)); }); @@ -263,24 +263,24 @@ void main() { await tester.pumpAndSettle(); }); - it("triggers delegate's sideMenuDidDismiss emits", (tester) async { + it("triggers delegate's sideMenuDidDismiss to emit", (tester) async { expect(delegate.sideMenuDidDismiss, emits(null)); }); }); }); - describe("it's user avatar button is tapped", () { + describe("its user avatar button is tapped", () { beforeEach((tester) async { await tester.pumpAndSettle(); await tester.tap(find.byKey(HomeView.userAvatarButtonKey)); }); - it("triggers delegate's userAvatarButtonDidTap emits", (tester) async { + it("triggers delegate's userAvatarButtonDidTap to emit", (tester) async { expect(delegate.userAvatarButtonDidTap, emits(null)); }); }); - describe("it's setUserInteractionEnable() is called", () { + describe("its setUserInteractionEnable() is called", () { beforeEach((tester) async { module.view.setUserInteractionEnable(isEnabled: false); await tester.pumpAndSettle(); diff --git a/test/modules/landing/landing_interactor_test.dart b/test/modules/landing/landing_interactor_test.dart index b712a552..0c869263 100644 --- a/test/modules/landing/landing_interactor_test.dart +++ b/test/modules/landing/landing_interactor_test.dart @@ -44,7 +44,7 @@ void main() { interactor.validateAuthentication(); }); - it("triggers delegate's didValidateAuthentication emits true", () { + it("triggers delegate's didValidateAuthentication to emit true", () { expect(delegate.authenticationDidValidate, emits(true)); }); }); @@ -57,7 +57,8 @@ void main() { interactor.validateAuthentication(); }); - it("triggers delegate's didValidateAuthentication emits error", () { + it("triggers delegate's didValidateAuthentication to emit an error", + () { expect(delegate.authenticationDidFailToValidate, emits(error)); }); }); diff --git a/test/modules/login/login_interactor_test.dart b/test/modules/login/login_interactor_test.dart index 3bdc42db..22d65118 100644 --- a/test/modules/login/login_interactor_test.dart +++ b/test/modules/login/login_interactor_test.dart @@ -40,7 +40,7 @@ void main() { interactor.login("email", "password"); }); - it("triggers delegate's didLogin emits", () { + it("triggers delegate's didLogin to emit", () { expect(delegate.didLogin, emits(null)); }); }); diff --git a/test/modules/login/login_view_test.dart b/test/modules/login/login_view_test.dart index 89aace9b..2bd58db4 100644 --- a/test/modules/login/login_view_test.dart +++ b/test/modules/login/login_view_test.dart @@ -154,7 +154,7 @@ void main() { await tester.enterText(find.byKey(LoginView.emailTextFieldKey), text); }); - it("triggers to delegate's didChangeEmailText emits", (tester) async { + it("triggers to delegate's didChangeEmailText to emit", (tester) async { expect(delegate.emailTextFieldDidChange, emits(text)); }); }); @@ -168,7 +168,8 @@ void main() { find.byKey(LoginView.passwordTextFieldKey), text); }); - it("triggers to delegate's didChangePasswordText emits", (tester) async { + it("triggers to delegate's didChangePasswordText to emit", + (tester) async { expect(delegate.passwordTextFieldDidChange, emits(text)); }); }); @@ -182,7 +183,7 @@ void main() { await tester.tap(find.byKey(LoginView.loginButtonKey)); }); - it("triggers to delegate's didTapLoginButton emits", (tester) async { + it("triggers to delegate's didTapLoginButton to emit", (tester) async { expect(delegate.loginButtonDidTap, emits(["", ""])); }); }); @@ -195,7 +196,7 @@ void main() { await tester.tap(find.byKey(LoginView.forgotButtonKey)); }); - it("triggers to delegate's didTapLoginButton emits", (tester) async { + it("triggers to delegate's didTapLoginButton to emit", (tester) async { expect(delegate.forgotButtonDidTap, emits(null)); }); }); diff --git a/test/modules/side_menu/side_menu_module_test.dart b/test/modules/side_menu/side_menu_module_test.dart index 9bacf44e..2c2b45a4 100644 --- a/test/modules/side_menu/side_menu_module_test.dart +++ b/test/modules/side_menu/side_menu_module_test.dart @@ -12,7 +12,7 @@ void main() { module = SideMenuModule(); }); - describe("its build is called", () { + describe("its build() is called", () { late Widget widget; beforeEach(() {