mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feat: Move runtime config into dedicated component, Closes #67
* Move runtime config into dedicated component, Closes #67 * Migrate FileResourceStore to RuntimeConfig
This commit is contained in:
@@ -4,6 +4,7 @@ import { DATA_TYPE_BINARY } from '../../../src/util/ContentTypes';
|
||||
import { NotFoundHttpError } from '../../../src/util/errors/NotFoundHttpError';
|
||||
import { Readable } from 'stream';
|
||||
import { RepresentationMetadata } from '../../../src/ldp/representation/RepresentationMetadata';
|
||||
import { RuntimeConfig } from '../../../src/init/RuntimeConfig';
|
||||
import { SimpleResourceStore } from '../../../src/storage/SimpleResourceStore';
|
||||
import streamifyArray from 'streamify-array';
|
||||
|
||||
@@ -15,7 +16,7 @@ describe('A SimpleResourceStore', (): void => {
|
||||
const dataString = '<http://test.com/s> <http://test.com/p> <http://test.com/o>.';
|
||||
|
||||
beforeEach(async(): Promise<void> => {
|
||||
store = new SimpleResourceStore(base);
|
||||
store = new SimpleResourceStore(new RuntimeConfig({ base }));
|
||||
|
||||
representation = {
|
||||
data: streamifyArray([ dataString ]),
|
||||
|
||||
Reference in New Issue
Block a user