|
|
@ -16,7 +16,8 @@ import { |
|
|
ContentsService, |
|
|
ContentsService, |
|
|
DateTime, |
|
|
DateTime, |
|
|
ScheduleDto, |
|
|
ScheduleDto, |
|
|
Version |
|
|
Version, |
|
|
|
|
|
Versioned |
|
|
} from './../'; |
|
|
} from './../'; |
|
|
|
|
|
|
|
|
describe('ContentsService', () => { |
|
|
describe('ContentsService', () => { |
|
|
@ -239,7 +240,7 @@ describe('ContentsService', () => { |
|
|
|
|
|
|
|
|
const response = {}; |
|
|
const response = {}; |
|
|
|
|
|
|
|
|
let data: any; |
|
|
let data: Versioned<any>; |
|
|
|
|
|
|
|
|
contentsService.getVersionData('my-app', 'my-schema', 'content1', version).subscribe(result => { |
|
|
contentsService.getVersionData('my-app', 'my-schema', 'content1', version).subscribe(result => { |
|
|
data = result; |
|
|
data = result; |
|
|
@ -252,7 +253,7 @@ describe('ContentsService', () => { |
|
|
|
|
|
|
|
|
req.flush(response); |
|
|
req.flush(response); |
|
|
|
|
|
|
|
|
expect(data).toBe(response); |
|
|
expect(data!.payload).toBe(response); |
|
|
})); |
|
|
})); |
|
|
|
|
|
|
|
|
it('should make put request to update content', |
|
|
it('should make put request to update content', |
|
|
|