Skip to content

Commit 2aa952f

Browse files
author
Shubham Goyal
committed
fix: add missing crypto import and templateService variable
1 parent a0c636e commit 2aa952f

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/generators/digitalExperienceSiteGenerator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Licensed under the BSD 3-Clause license.
55
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
7+
import * as crypto from 'crypto';
78
import * as path from 'path';
89
import { CreateUtil } from '../utils';
910
import { DigitalExperienceSiteOptions } from '../utils/types';

test/service/templateService.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,6 +948,7 @@ describe('TemplateService', () => {
948948
});
949949
it('should create Project (agent)', async () => {
950950
await remove(path.join('testsoutput', 'libraryCreate', 'project'));
951+
const templateService = TemplateService.getInstance();
951952
const result = await templateService.create(TemplateType.Project, {
952953
outputdir: path.join('testsoutput', 'libraryCreate', 'project'),
953954
projectname: 'LibraryCreateProject',
@@ -1009,7 +1010,6 @@ describe('TemplateService', () => {
10091010
),
10101011
'einsteinGptSettings'
10111012
);
1012-
10131013
});
10141014
it('should create Project (reactb2e) from built-in template', async () => {
10151015
await remove(path.join('testsoutput', 'libraryCreate', 'project'));

0 commit comments

Comments
 (0)