mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
Added http status text to rest response object and fixed tests
This commit is contained in:
@@ -40,12 +40,14 @@ describe('ConfigResponseParsingService', () => {
|
||||
expires: 1526318322000
|
||||
},
|
||||
} as AuthStatus,
|
||||
statusCode: '200'
|
||||
statusCode: 200,
|
||||
statusText: '200'
|
||||
};
|
||||
|
||||
const validResponse1 = {
|
||||
payload: {},
|
||||
statusCode: '404'
|
||||
statusCode: 404,
|
||||
statusText: '404'
|
||||
};
|
||||
|
||||
const validResponse2 = {
|
||||
@@ -95,7 +97,9 @@ describe('ConfigResponseParsingService', () => {
|
||||
self: 'https://hasselt-dspace.dev01.4science.it/dspace-spring-rest/api/authn/status'
|
||||
}
|
||||
},
|
||||
statusCode: '200'
|
||||
statusCode: 200,
|
||||
statusText: '200'
|
||||
|
||||
};
|
||||
|
||||
it('should return a AuthStatusResponse if data contains a valid AuthStatus object as payload', () => {
|
||||
|
Reference in New Issue
Block a user