fix lint files
This commit is contained in:
@@ -17,6 +17,6 @@ describe('ArchiveDialogComponent', () => {
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
void expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -17,6 +17,6 @@ describe('ShareDialogComponent', () => {
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
void expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -19,6 +19,6 @@ describe('FilterComponent', () => {
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
void expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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');
|
||||
});
|
||||
}));
|
||||
});
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
import {Component} from '@angular/core';
|
||||
import {MatDialogActions, MatDialogClose, MatDialogContent, MatDialogTitle} from '@angular/material/dialog';
|
||||
import {MatButton} from '@angular/material/button';
|
||||
|
||||
@Component({
|
||||
selector: 'app-save-dialog',
|
||||
templateUrl: './save-dialog.component.html',
|
||||
styleUrls: ['./save-dialog.component.less'],
|
||||
imports: [MatDialogClose, MatDialogTitle, MatDialogContent, MatDialogActions, MatButton],
|
||||
})
|
||||
export class SaveDialogComponent {}
|
||||
|
||||
@@ -28,9 +28,7 @@ import {SongTypePipe} from '../../../../widget-modules/pipes/song-type-translate
|
||||
import {StatusPipe} from '../../../../widget-modules/pipes/status-translater/status.pipe';
|
||||
|
||||
@NgModule({
|
||||
declarations: [SaveDialogComponent],
|
||||
exports: [EditComponent],
|
||||
bootstrap: [SaveDialogComponent],
|
||||
imports: [
|
||||
CommonModule,
|
||||
SongTypePipe,
|
||||
@@ -55,6 +53,7 @@ import {StatusPipe} from '../../../../widget-modules/pipes/status-translater/sta
|
||||
EditFileComponent,
|
||||
FileComponent,
|
||||
HistoryComponent,
|
||||
SaveDialogComponent,
|
||||
],
|
||||
})
|
||||
export class EditModule {}
|
||||
|
||||
@@ -3,6 +3,6 @@ import {SortByPipe} from './sort-by.pipe';
|
||||
describe('SortByPipe', () => {
|
||||
it('create an instance', () => {
|
||||
const pipe = new SortByPipe();
|
||||
expect(pipe).toBeTruthy();
|
||||
void expect(pipe).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user