chore(scaffolder): added some more tests to check that the path is returned properly

This commit is contained in:
blam
2020-06-22 15:56:39 +02:00
parent 9d5e659df1
commit 6ab85e0e38
@@ -74,6 +74,12 @@ describe('GitHubPreparer', () => {
{ checkoutOpts: {} },
);
});
it('resolves relative path from the template', async () => {});
it('resolves relative path from the nested template', async () => {});
it('return the temp directory with the path to the folder if it is specified', async () => {
const preparer = new GithubPreparer();
mockEntity.spec.path = './template/test/1/2/3';
const response = await preparer.prepare(mockEntity);
expect(response).toMatch(new RegExp(/\/template\/test\/1\/2\/3$/));
});
});