Skip to content

Commit

Permalink
PRettier
Browse files Browse the repository at this point in the history
  • Loading branch information
crisnicandrei committed Oct 20, 2023
1 parent 171e7c8 commit 2fe18b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
})
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2fe18b6

Please sign in to comment.