refactor: Move pod templates to pod subfolder.

This commit is contained in:
Ruben Verborgh
2021-01-14 23:53:26 +01:00
committed by Joachim Van Herwegen
parent 4638ba4bce
commit a5413a64d3
8 changed files with 6 additions and 5 deletions

View File

@@ -59,7 +59,7 @@ describe('CliRunner', (): void => {
'urn:solid-server:default:variable:rootFilePath': '/var/cwd/',
'urn:solid-server:default:variable:sparqlEndpoint': undefined,
'urn:solid-server:default:variable:loggingLevel': 'info',
'urn:solid-server:default:variable:podTemplateFolder': joinFilePath(__dirname, '../../../templates'),
'urn:solid-server:default:variable:podTemplateFolder': joinFilePath(__dirname, '../../../templates/pod'),
},
},
);

View File

@@ -38,7 +38,7 @@ async function genToArray<T>(iterable: AsyncIterable<T>): Promise<T[]> {
}
describe('A TemplatedResourcesGenerator', (): void => {
const rootFilePath = 'templates';
const rootFilePath = 'templates/pod';
// Using handlebars engine since it's smaller than any possible dummy
const generator = new TemplatedResourcesGenerator(rootFilePath, new DummyFactory(), new HandlebarsTemplateEngine());
let cache: { data: any };