refactor: Use record for representation preference.

This commit is contained in:
Ruben Verborgh
2021-01-04 23:06:52 +01:00
parent 15d1ae179f
commit 4828912593
21 changed files with 107 additions and 128 deletions

View File

@@ -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;