You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've extended the app.spec.ts with a fakeAsync test.
import {
it,
inject,
beforeEachProviders,
fakeAsync,
tick
} from '@angular/core/testing';
import {Control} from '@angular/common';
// Load the implementations that should be tested
import {App} from './app.component';
import {AppState} from './app.service';
describe('App', () => {
// provide our implementations or mocks to the dependency injector
beforeEachProviders(() => [
AppState,
App
]);
it('should have a url', inject([ App ], (app) => {
expect(app.url).toEqual('https://twitter.com/AngularClass');
}));
it("should rerun the validator when the value changes", fakeAsync(() => {
var c = new Control("value");
c.updateValue("expected");
tick();
expect(c.valid).toEqual(true);
}));
});
I've extended the app.spec.ts with a fakeAsync test.
and got the exception:
is there an import I miss?
The text was updated successfully, but these errors were encountered: