title: Angular How to update mock data in different unit tests
body: <pre class="lang-js prettyprint-override"><code>    describe('landing component', () =&gt; {
          beforeEach(() =&gt; {
              mockAccountService = new Mock&lt;AccountService&gt;({
                  getSelectedContractAccountNumber: () =&gt; {
                      return testAccountNumber;
                  }
              });
  
              myGraphDto = &lt;any&gt;{
                  accountsById: {
                      [testAccountNumber]: {
                          flybuys: {
                              cardNumber: testFlybuysCardNumber,
                              confirmationStatus: 'PendingConfirmation'
                          },
                          contracts: {
                              [0]: {
                                  isResidentialCustomer: true
                              }
                          }
                      }
                  }
              };
  
              mockGraphService = new Mock&lt;GraphService&gt;({
                  getData: () =&gt; {
                      return of(myGraphDto);
                  }
              });
  
              TestBed.configureTestingModule({
                  providers: [
                      { provide: IAccountServiceMA, useValue: mockAccountService.Object },
                      { provide: GraphService, useValue: mockGraphService.Object }
                  ],
                  imports: [myModule, RouterTestingModule.withRoutes([])]
              });
  
              fixture = TestBed.createComponent(LandingComponent);
              myComponent = fixture.componentInstance;
              router = TestBed.get(Router);
              spyOn(router, 'navigate');
              fixture.detectChanges();
          });
  
          it('should display $1 for residential customers', (done: DoneFn) =&gt; {
  
              myComponent.isResidentialCustomer();
              const price = fixture.nativeElement.querySelector('.landing-price');
              fixture.detectChanges();
              expect(price.textContent).toBe('$1');
              done();
          });
  
          it('should display $4 for SME', (done: DoneFn) =&gt; {
              // How do I update the isResidentialCustomer to false here?
              const price = fixture.nativeElement.querySelector('.landing-price');
              console.log('-----------------------------price--------------------------------');
              console.log(price);
              expect(price.textContent).toBe('$4');
              done();
          });
  </code></pre>
  
  <p>How do I update the isResidentialCustomer to false in the 2nd unit test?</p>