fix lint files

This commit is contained in:
2025-01-05 10:40:49 +01:00
parent 189478f078
commit 26fd61e90a
7 changed files with 14 additions and 13 deletions

View File

@@ -1,8 +1,8 @@
import {TestBed, waitForAsync} from '@angular/core/testing';
import {TestBed} from '@angular/core/testing';
import {SongDataService} from './song-data.service';
import {AngularFirestore} from '@angular/fire/compat/firestore';
import {of} from 'rxjs';
import {firstValueFrom, of} from 'rxjs';
describe('SongDataService', () => {
const songs = [{title: 'title1'}];
@@ -27,10 +27,9 @@ describe('SongDataService', () => {
void expect(service).toBeTruthy();
});
it('should list songs', waitForAsync(() => {
it('should list songs', async () => {
const service: SongDataService = TestBed.inject(SongDataService);
service.list$().subscribe(s => {
void expect(s[0].title).toEqual('title1');
});
}));
const list = await firstValueFrom(service.list$);
void expect(list[0].title).toEqual('title1');
});
});