Skip to content

Commit b35c758

Browse files
committed
Fix cleanup process
1 parent e1ed603 commit b35c758

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/cleanup.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
const utils = require('../src/utils');
22
const githubHandler = require('../src/githubHandler');
33

4-
function cleanup(name = 'a-demo-project') {
4+
function cleanup(path = 'a-demo-project') {
5+
const name = utils.normalizeName(path);
6+
57
// Remove test folder
6-
console.log(`Deleting folder ${name}`);
7-
utils.deleteDirRecursive(`../${name}`);
8+
console.log(`Deleting folder ${path}`);
9+
utils.deleteDirRecursive(path);
810

911
// Delete github project
1012
githubHandler.deleteRepo(name, 'nmicht');

0 commit comments

Comments
 (0)