mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
refactor: Use record for representation preference.
This commit is contained in:
@@ -7,7 +7,7 @@ import { BadRequestHttpError } from '../../../../src/util/errors/BadRequestHttpE
|
||||
|
||||
describe('A PreferenceSupport', (): void => {
|
||||
const type = 'internal/quads';
|
||||
const preferences: RepresentationPreferences = { type: [{ value: type, weight: 1 }]};
|
||||
const preferences: RepresentationPreferences = { type: { [type]: 1 }};
|
||||
let converter: RepresentationConverter;
|
||||
let support: PreferenceSupport;
|
||||
const identifier: ResourceIdentifier = 'identifier' as any;
|
||||
|
||||
Reference in New Issue
Block a user