From 2fe18b673cc1f7f685fb9138b7ff6281d70a1067 Mon Sep 17 00:00:00 2001 From: crisnicandrei <62384997+crisnicandrei@users.noreply.github.com> Date: Tue, 10 Oct 2023 14:52:23 +0300 Subject: [PATCH] PRettier --- .../storage-dialog/storage-dialog.component.spec.ts | 11 +++-------- .../components/new-pledge/new-pledge.component.ts | 2 +- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/src/app/core/components/storage-dialog/storage-dialog.component.spec.ts b/src/app/core/components/storage-dialog/storage-dialog.component.spec.ts index ca442b9fc..c617ec4f7 100644 --- a/src/app/core/components/storage-dialog/storage-dialog.component.spec.ts +++ b/src/app/core/components/storage-dialog/storage-dialog.component.spec.ts @@ -108,20 +108,15 @@ describe('StorageDialogComponent', () => { ); }); - it('should enable the button after adding a promo code',async() => { + it('should enable the button after adding a promo code', async () => { const { find, instance, fixture } = await shallow.render(); - instance.promoForm.patchValue({ code: 'promo1', }); - instance.promoForm.updateValueAndValidity(); - instance.activeTab = 'promo' - + instance.activeTab = 'promo'; fixture.detectChanges(); - const button = find('.btn-primary'); - expect(button.nativeElement.disabled).toBeFalsy(); - }) + }); }); diff --git a/src/app/pledge/components/new-pledge/new-pledge.component.ts b/src/app/pledge/components/new-pledge/new-pledge.component.ts index 5caac6fc7..558d73d04 100644 --- a/src/app/pledge/components/new-pledge/new-pledge.component.ts +++ b/src/app/pledge/components/new-pledge/new-pledge.component.ts @@ -269,7 +269,7 @@ export class NewPledgeComponent implements OnInit, AfterViewInit, OnDestroy { spaceTotal: account.spaceTotal + sizeInBytes, }); this.accountService.setAccount(newAccount); - this.accountService.accountStorageUpdate.next(newAccount) + this.accountService.accountStorageUpdate.next(newAccount); this.message.showMessage( `You just claimed ${this.getStorageAmount( pledge.dollarAmount