Merge pull request #1922 from dsteelma-umd/1920_fix-data-service.decorator.spec.ts-intermittent-failures

Issue 1920 - "data-service.decorator.spec.ts" tests fails intermittently
This commit is contained in:
Tim Donohue
2022-10-20 13:45:50 -05:00
committed by GitHub

View File

@@ -10,6 +10,7 @@ import { ResourceType } from '../../shared/resource-type';
import { BaseDataService } from './base-data.service'; import { BaseDataService } from './base-data.service';
import { HALDataService } from './hal-data-service.interface'; import { HALDataService } from './hal-data-service.interface';
import { dataService, getDataServiceFor } from './data-service.decorator'; import { dataService, getDataServiceFor } from './data-service.decorator';
import { v4 as uuidv4 } from 'uuid';
class TestService extends BaseDataService<any> { class TestService extends BaseDataService<any> {
} }
@@ -28,7 +29,7 @@ let testType;
describe('@dataService/getDataServiceFor', () => { describe('@dataService/getDataServiceFor', () => {
beforeEach(() => { beforeEach(() => {
testType = new ResourceType('testType-' + new Date().getTime()); testType = new ResourceType(`testType-${uuidv4()}`);
}); });
it('should register a resourcetype for a dataservice', () => { it('should register a resourcetype for a dataservice', () => {