Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Romuald Caplier committed Sep 30, 2024
1 parent c7618f4 commit 4ee2cf9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 19 deletions.
23 changes: 14 additions & 9 deletions libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import { Injectable } from '@angular/core'
import { combineLatest, Observable, of, switchMap, throwError } from 'rxjs'
import {
combineLatest,
forkJoin,
catchError,
filter,
map,
mergeMap,
Observable,
of,
switchMap,
} from 'rxjs'
import { catchError, filter, map, shareReplay, tap } from 'rxjs/operators'
shareReplay,
tap,
} from 'rxjs/operators'
import {
MeApiService,
RecordsApiService,
Expand Down Expand Up @@ -39,6 +37,14 @@ import {
} from '@geonetwork-ui/api/metadata-converter'
import { KeywordType } from '@geonetwork-ui/common/domain/model/thesaurus'
import { noDuplicateFileName } from '@geonetwork-ui/util/shared'
import {
combineLatest,
forkJoin,
Observable,
of,
switchMap,
throwError,
} from 'rxjs'

const minApiVersion = '4.2.2'

Expand Down Expand Up @@ -341,7 +347,6 @@ export class Gn4PlatformService implements PlatformServiceInterface {
)
}

attachFileToRecord(recordUuid: string, file: File) {
attachFileToRecord(recordUuid: string, file: File): Observable<UploadEvent> {
let sizeBytes = -1

Expand Down
10 changes: 0 additions & 10 deletions libs/feature/editor/src/lib/+state/editor.effects.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,16 +172,6 @@ describe('EditorEffects', () => {
})
})

describe('cleanRecordAttachments$', () => {
it('dispatch markRecordAsChanged', () => {
actions = hot('-a-|', {
a: EditorActions.saveRecordSuccess(),
})
const expected = hot('---|')
expect(effects.cleanRecordAttachments$).toBeObservable(expected)
})
})

describe('checkHasChangesOnOpen$', () => {
describe('if the record has a draft', () => {
it('dispatch markRecordAsChanged', () => {
Expand Down

0 comments on commit 4ee2cf9

Please sign in to comment.