Skip to content

Commit

Permalink
Missed test scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
NAmorim committed Nov 29, 2022
1 parent 0825df3 commit 4729b54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .tests/Environment.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const expectedObject = {
PATH_TO_PROJECTS_REQUIRED: path.join(basePath, './Projects'),
PATH_TO_PROJECT_SCHEMA: path.join(basePath, './Projects/ProjectsSchema.json'),
PATH_TO_PLATFORM: path.join(basePath, './Platform'),
PATH_TO_DESKTOP: './SocialTrading',
PATH_TO_SOCIALTRADING: './Social-Trading',
PATH_TO_DEFAULT_WORKSPACE: path.join(basePath, './Plugins/Foundations/Workspaces'),
PATH_TO_MY_WORKSPACES: path.join(basePath, './Platform/My-Workspaces'),
PATH_TO_SECRETS: path.join(basePath, './My-Secrets'),
Expand Down
6 changes: 3 additions & 3 deletions .tests/Launch-Scripts/createShortcut.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ jest.mock('child_process', () => {
if (command === `$ws = New-Object -ComObject WScript.Shell; $s = $ws.CreateShortcut("${dir}"); $S.TargetPath = "${target}"; $S.IconLocation = "${icon}"; $S.Save()`) {
return 0
}
if (command === `cp ${name}.desktop ~/SocialTrading/${name}.desktop & cp ${name}.desktop ~/.local/share/applications/${name}.desktop`) {
if (command === `cp ${name}.desktop ~/Social-Trading/${name}.desktop & cp ${name}.desktop ~/.local/share/applications/${name}.desktop`) {
return 0
}
if (command === `chmod +x ${name}.command & cp ${name}.command ~/SocialTrading/${name}.command`) {
if (command === `chmod +x ${name}.command & cp ${name}.command ~/Social-Trading/${name}.command`) {
return 0
}
if (command === `npm install -g fileicon`) {
return 0
}
if (command === `./node_modules/fileicon/bin/fileicon set ~/SocialTrading/${name}.command ./Launch-Scripts/superalgos.ico`) {
if (command === `./node_modules/fileicon/bin/fileicon set ~/Social-Trading/${name}.command ./Launch-Scripts/superalgos.ico`) {
return 0
}
if (command === `npm uninstall -g fileicon`) {
Expand Down

0 comments on commit 4729b54

Please sign in to comment.