-
-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Show-Karma - Properly handle completion of topics (#250)
* 🐛 Fix Show-Karma not handling completed topics Wasn't expecting completion at all and was completely mishandling the prompt parameter call. * ✅ Add regression test * 🐛 ✅ Fix logic and tests Tests needed to be updated for Get-Karma as well Show-Karma had its completion logic reversed, oops! * 📝 add launch.json * ♻️ Refactor Show-Karma logic
- Loading branch information
Showing
5 changed files
with
151 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "PowerShell Launch Current File", | ||
"type": "PowerShell", | ||
"request": "launch", | ||
"script": "${file}", | ||
"args": [], | ||
"cwd": "${file}" | ||
}, | ||
{ | ||
"name": "PowerShell Launch Current File in Temporary Console", | ||
"type": "PowerShell", | ||
"request": "launch", | ||
"script": "${file}", | ||
"args": [], | ||
"cwd": "${file}", | ||
"createTemporaryIntegratedConsole": true | ||
}, | ||
{ | ||
"name": "PowerShell Launch Current File w/Args Prompt", | ||
"type": "PowerShell", | ||
"request": "launch", | ||
"script": "${file}", | ||
"args": [ | ||
"${command:SpecifyScriptArgs}" | ||
], | ||
"cwd": "${file}" | ||
}, | ||
{ | ||
"name": "PowerShell Attach to Host Process", | ||
"type": "PowerShell", | ||
"request": "attach" | ||
}, | ||
{ | ||
"name": "PowerShell Interactive Session", | ||
"type": "PowerShell", | ||
"request": "launch", | ||
"cwd": "" | ||
}, | ||
{ | ||
"name": "PowerShell Attach Interactive Session Runspace", | ||
"type": "PowerShell", | ||
"request": "attach", | ||
"processId": "current" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
Tests/Functions/Public/CompletedKoan/SelectedTopicTest.Koans.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using module PSKoans | ||
[Koan(Position = 1)] | ||
param() | ||
|
||
Describe 'Koans Test' { | ||
|
||
It 'is easy to solve' { | ||
$true | Should -BeTrue | ||
} | ||
|
||
It 'is positively trivial' { | ||
$false | Should -BeFalse | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters