diff --git a/frontend/src/lib/conduit/fhir/base/fhir401_r4_client.spec.ts b/frontend/src/lib/conduit/fhir/base/fhir401_r4_client.spec.ts index 04320aed..3da8af0e 100644 --- a/frontend/src/lib/conduit/fhir/base/fhir401_r4_client.spec.ts +++ b/frontend/src/lib/conduit/fhir/base/fhir401_r4_client.spec.ts @@ -5,11 +5,13 @@ import {ResourceFhir} from '../../../models/database/resource_fhir'; import {NewRepositiory} from '../../../database/pouchdb_repository'; import {Base64} from '../../../utils/base64'; import * as PouchDB from 'pouchdb/dist/pouchdb'; +import { v4 as uuidv4 } from 'uuid'; // @ts-ignore import * as FHIR401Client_ProcessBundle from './fixtures/FHIR401Client_ProcessBundle.json'; import {IDatabaseRepository} from '../../../database/interface'; + class TestClient extends FHIR401Client { constructor(source: Source) { super(source); @@ -64,7 +66,7 @@ describe('FHIR401Client', () => { let repository: IDatabaseRepository; beforeEach(async () => { - repository = NewRepositiory(null, null, new PouchDB("FHIR401Client-testing")); + repository = NewRepositiory(null, null, new PouchDB("FHIR401Client-"+ uuidv4())); }); afterEach(async () => { diff --git a/frontend/src/lib/database/pouchdb_repository.spec.ts b/frontend/src/lib/database/pouchdb_repository.spec.ts index ccdadbf2..dd40f970 100644 --- a/frontend/src/lib/database/pouchdb_repository.spec.ts +++ b/frontend/src/lib/database/pouchdb_repository.spec.ts @@ -4,12 +4,13 @@ import {SourceType} from '../models/database/source_types'; import {Source} from '../models/database/source'; import {DocType} from './constants'; import * as PouchDB from 'pouchdb/dist/pouchdb'; +import { v4 as uuidv4 } from 'uuid'; describe('PouchdbRepository', () => { let repository: IDatabaseRepository; beforeEach(async () => { - repository = NewRepositiory(null, null, new PouchDB("PouchdbRepository-testing")); + repository = NewRepositiory(null, null, new PouchDB("PouchdbRepository" + uuidv4())); }); afterEach(async () => { diff --git a/frontend/yarn.lock b/frontend/yarn.lock index 1dff64a3..6547d546 100644 --- a/frontend/yarn.lock +++ b/frontend/yarn.lock @@ -1545,7 +1545,7 @@ read-package-json-fast "^2.0.3" which "^2.0.2" -"@panva/oauth4webapi@^1.1.3": +"@panva/oauth4webapi@1.2.0": version "1.2.0" resolved "https://registry.yarnpkg.com/@panva/oauth4webapi/-/oauth4webapi-1.2.0.tgz#f0bce0da0953dd8f8c091af77d559fddf44f1b0f" integrity sha512-OmwAE3fzlSJsA0zzCWA/ob7Nwb7nwzku8vbAjgmnkkVYbpyokBsaVrrzog9cM0RMytXexpNNcbQbMF/UNa71mg==