We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1ed603 commit b35c758Copy full SHA for b35c758
test/cleanup.js
@@ -1,10 +1,12 @@
1
const utils = require('../src/utils');
2
const githubHandler = require('../src/githubHandler');
3
4
-function cleanup(name = 'a-demo-project') {
+function cleanup(path = 'a-demo-project') {
5
+ const name = utils.normalizeName(path);
6
+
7
// Remove test folder
- console.log(`Deleting folder ${name}`);
- utils.deleteDirRecursive(`../${name}`);
8
+ console.log(`Deleting folder ${path}`);
9
+ utils.deleteDirRecursive(path);
10
11
// Delete github project
12
githubHandler.deleteRepo(name, 'nmicht');
0 commit comments