Lint errors.

This commit is contained in:
Michael Spalti
2022-04-28 17:01:59 -07:00
parent 7bbce89b40
commit 58b8ba3aa7
2 changed files with 8 additions and 8 deletions

View File

@@ -155,7 +155,7 @@ describe('PublicationComponent', () => {
beforeEach(waitForAsync(() => { beforeEach(waitForAsync(() => {
const localMockRouteService = { const localMockRouteService = {
getPreviousUrl(): Observable<string> { getPreviousUrl(): Observable<string> {
return of('/search?query=test') return of('/search?query=test');
} }
}; };
const iiifEnabledMap: MetadataMap = { const iiifEnabledMap: MetadataMap = {
@@ -178,7 +178,7 @@ describe('PublicationComponent', () => {
it('should retrieve the query term for previous route', fakeAsync((): void => { it('should retrieve the query term for previous route', fakeAsync((): void => {
//tick(10) //tick(10)
expect(comp.iiifQuery$.subscribe(result => expect(result).toEqual('test'))); expect(comp.iiifQuery$.subscribe(result => expect(result).toEqual('test')));
})) }));
}); });
@@ -187,7 +187,7 @@ describe('PublicationComponent', () => {
beforeEach(waitForAsync(() => { beforeEach(waitForAsync(() => {
const localMockRouteService = { const localMockRouteService = {
getPreviousUrl(): Observable<string> { getPreviousUrl(): Observable<string> {
return of('/item') return of('/item');
} }
}; };
const iiifEnabledMap: MetadataMap = { const iiifEnabledMap: MetadataMap = {
@@ -210,7 +210,7 @@ describe('PublicationComponent', () => {
it('should not retrieve the query term for previous route', fakeAsync( () => { it('should not retrieve the query term for previous route', fakeAsync( () => {
let emitted; let emitted;
comp.iiifQuery$.subscribe(result => emitted = result); comp.iiifQuery$.subscribe(result => emitted = result);
tick(10) tick(10);
expect(emitted).toBeUndefined(); expect(emitted).toBeUndefined();
})); }));

View File

@@ -173,7 +173,7 @@ describe('UntypedItemComponent', () => {
beforeEach(waitForAsync(() => { beforeEach(waitForAsync(() => {
const localMockRouteService = { const localMockRouteService = {
getPreviousUrl(): Observable<string> { getPreviousUrl(): Observable<string> {
return of('/search?query=test') return of('/search?query=test');
} }
}; };
const iiifEnabledMap: MetadataMap = { const iiifEnabledMap: MetadataMap = {
@@ -204,7 +204,7 @@ describe('UntypedItemComponent', () => {
beforeEach(waitForAsync(() => { beforeEach(waitForAsync(() => {
const localMockRouteService = { const localMockRouteService = {
getPreviousUrl(): Observable<string> { getPreviousUrl(): Observable<string> {
return of('/item') return of('/item');
} }
}; };
const iiifEnabledMap: MetadataMap = { const iiifEnabledMap: MetadataMap = {
@@ -227,8 +227,8 @@ describe('UntypedItemComponent', () => {
it('should not retrieve the query term for previous route', fakeAsync( () => { it('should not retrieve the query term for previous route', fakeAsync( () => {
let emitted; let emitted;
comp.iiifQuery$.subscribe(result => emitted = result); comp.iiifQuery$.subscribe(result => emitted = result);
tick(10) tick(10);
expect(emitted).toBeUndefined() expect(emitted).toBeUndefined();
})); }));
}); });