Dashboard Tests
Let's update dashboard tests to pass the failing tests.
We'll cover the following...
Below is our updated code. Use this to make further changes:
your_API_key
Not Specified...
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>LetsGetLunch</title> <base href="/"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" type="image/x-icon" href="favicon.ico"> </head> <body> <app-root></app-root> </body> </html>
Updated dashboard
Fixing broken tests
Before adding the calendar UI, let’s update our broken test.
- Update our list of imports.
Press + to interact
// src/app/dashboard/dashboard.component.spec.tsimport { RouterTestingModule } from '@angular/router/testing';import { of } from 'rxjs';import { DashboardModule } from './dashboard.module';import { AuthService } from '../services/auth/auth.service';import { EventsService } from '../services/events/events.service';import { Event } from '../services/events/event';
The only new import here is ...