mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feat: Add better support for non-native errors
This commit is contained in:
@@ -4,7 +4,7 @@ import {
|
||||
getBestPreference,
|
||||
getConversionTarget,
|
||||
getTypeWeight,
|
||||
getWeightedPreferences,
|
||||
getWeightedPreferences, isInternalContentType,
|
||||
matchesMediaPreferences,
|
||||
matchesMediaType,
|
||||
} from '../../../../src/storage/conversion/ConversionUtil';
|
||||
@@ -144,4 +144,13 @@ describe('ConversionUtil', (): void => {
|
||||
expect(matchesMediaType('text/plain', 'text/turtle')).toBeFalsy();
|
||||
});
|
||||
});
|
||||
|
||||
describe('#isInternalContentType', (): void => {
|
||||
it('only returns true on internal types.', async(): Promise<void> => {
|
||||
expect(isInternalContentType('internal/quads')).toBeTruthy();
|
||||
|
||||
expect(isInternalContentType()).toBeFalsy();
|
||||
expect(isInternalContentType('text/turtle')).toBeFalsy();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user