Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pester Test #1

Open
baristaTam opened this issue Mar 21, 2022 · 0 comments
Open

Pester Test #1

baristaTam opened this issue Mar 21, 2022 · 0 comments

Comments

@baristaTam
Copy link
Contributor

Add a .Tests Pester file that uses Mock to verify the expected calls to 'Invoke-RestMethod' happen within Export-SplunkData

In case it's of value - here's a case where I have used with Mock in Pester to assert a method gets called (while preventing the actual call from happening):
https://github.com/uillinois-community/powershell-scripts/blob/4d0aa88edf33759e43d2221c2c4df012b9f95b8c/modules/AgileGitHub.Tests.ps1#L73

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant