mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
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:
@@ -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', () => {
|
||||||
|
Reference in New Issue
Block a user