fixed most tests.
This commit is contained in:
parent
d6e56b3800
commit
fe2febed4b
|
@ -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 () => {
|
||||
|
|
|
@ -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 () => {
|
||||
|
|
|
@ -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==
|
||||
|
|
Loading…
Reference in New Issue