fix lint files
This commit is contained in:
@@ -17,6 +17,6 @@ describe('ArchiveDialogComponent', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should create', () => {
|
it('should create', () => {
|
||||||
expect(component).toBeTruthy();
|
void expect(component).toBeTruthy();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -17,6 +17,6 @@ describe('ShareDialogComponent', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should create', () => {
|
it('should create', () => {
|
||||||
expect(component).toBeTruthy();
|
void expect(component).toBeTruthy();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -19,6 +19,6 @@ describe('FilterComponent', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should create', () => {
|
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 {SongDataService} from './song-data.service';
|
||||||
import {AngularFirestore} from '@angular/fire/compat/firestore';
|
import {AngularFirestore} from '@angular/fire/compat/firestore';
|
||||||
import {of} from 'rxjs';
|
import {firstValueFrom, of} from 'rxjs';
|
||||||
|
|
||||||
describe('SongDataService', () => {
|
describe('SongDataService', () => {
|
||||||
const songs = [{title: 'title1'}];
|
const songs = [{title: 'title1'}];
|
||||||
@@ -27,10 +27,9 @@ describe('SongDataService', () => {
|
|||||||
void expect(service).toBeTruthy();
|
void expect(service).toBeTruthy();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should list songs', waitForAsync(() => {
|
it('should list songs', async () => {
|
||||||
const service: SongDataService = TestBed.inject(SongDataService);
|
const service: SongDataService = TestBed.inject(SongDataService);
|
||||||
service.list$().subscribe(s => {
|
const list = await firstValueFrom(service.list$);
|
||||||
void expect(s[0].title).toEqual('title1');
|
void expect(list[0].title).toEqual('title1');
|
||||||
});
|
});
|
||||||
}));
|
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,8 +1,11 @@
|
|||||||
import {Component} from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
|
import {MatDialogActions, MatDialogClose, MatDialogContent, MatDialogTitle} from '@angular/material/dialog';
|
||||||
|
import {MatButton} from '@angular/material/button';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-save-dialog',
|
selector: 'app-save-dialog',
|
||||||
templateUrl: './save-dialog.component.html',
|
templateUrl: './save-dialog.component.html',
|
||||||
styleUrls: ['./save-dialog.component.less'],
|
styleUrls: ['./save-dialog.component.less'],
|
||||||
|
imports: [MatDialogClose, MatDialogTitle, MatDialogContent, MatDialogActions, MatButton],
|
||||||
})
|
})
|
||||||
export class SaveDialogComponent {}
|
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';
|
import {StatusPipe} from '../../../../widget-modules/pipes/status-translater/status.pipe';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [SaveDialogComponent],
|
|
||||||
exports: [EditComponent],
|
exports: [EditComponent],
|
||||||
bootstrap: [SaveDialogComponent],
|
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
SongTypePipe,
|
SongTypePipe,
|
||||||
@@ -55,6 +53,7 @@ import {StatusPipe} from '../../../../widget-modules/pipes/status-translater/sta
|
|||||||
EditFileComponent,
|
EditFileComponent,
|
||||||
FileComponent,
|
FileComponent,
|
||||||
HistoryComponent,
|
HistoryComponent,
|
||||||
|
SaveDialogComponent,
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
export class EditModule {}
|
export class EditModule {}
|
||||||
|
|||||||
@@ -3,6 +3,6 @@ import {SortByPipe} from './sort-by.pipe';
|
|||||||
describe('SortByPipe', () => {
|
describe('SortByPipe', () => {
|
||||||
it('create an instance', () => {
|
it('create an instance', () => {
|
||||||
const pipe = new SortByPipe();
|
const pipe = new SortByPipe();
|
||||||
expect(pipe).toBeTruthy();
|
void expect(pipe).toBeTruthy();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user