diff --git a/src/app/account/register.component.spec.ts b/src/app/account/register.component.spec.ts index 99f5177..710f551 100644 --- a/src/app/account/register.component.spec.ts +++ b/src/app/account/register.component.spec.ts @@ -64,7 +64,7 @@ describe("Register Component", () => { helper.detectChanges(); expect(registerService.createAccount).toHaveBeenCalledWith(user_data); - expect(stateService.transitionTo).toHaveBeenCalledWith("main.environment"); + expect(stateService.transitionTo).toHaveBeenCalledWith("main.environment.home"); expect(notificationService.success).toHaveBeenCalled(); done(); @@ -85,7 +85,7 @@ describe("Register Component", () => { expect(registerService.createAccount).toHaveBeenCalledWith(user_data); - expect(stateService.transitionTo).not.toHaveBeenCalledWith("main.environment"); + expect(stateService.transitionTo).not.toHaveBeenCalledWith("main.environment.home"); expect(notificationService.error).toHaveBeenCalled(); done(); diff --git a/src/app/account/register.component.ts b/src/app/account/register.component.ts index 5f31222..d8d10af 100644 --- a/src/app/account/register.component.ts +++ b/src/app/account/register.component.ts @@ -41,7 +41,7 @@ export class RegisterComponent { let field = ''; this.errorMessages = []; this.registerService.createAccount(this.account).then((response) => { - this.$state.transitionTo('main.environment'); + this.$state.transitionTo('main.environment.home'); this.notificationService.success({ title: "account.register.success.title", message: "account.register.success.message" }); }).catch((response) => { if (response.data.error) { -- libgit2 0.21.2