Skip to content
This repository has been archived by the owner on Jan 4, 2025. It is now read-only.

Commit

Permalink
1404 (#1410)
Browse files Browse the repository at this point in the history
* Fixes #1404

* Update change log.
  • Loading branch information
adamdriscoll authored Dec 31, 2019
1 parent 3c7d06e commit 51a796f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Extracted materialize from the core UD client libraries by [adamdriscoll](https://github.com/adamdriscoll)
- Fixed JavaScript error when loading page by [adamdriscoll](https://github.com/adamdriscoll)
- Updated tests to correctly validate #1404 by [adamdriscoll](https://github.com/adamdriscoll)

### Changed (Enterprise)

Expand Down
8 changes: 4 additions & 4 deletions src/UniversalDashboard.UITest/Integration/Api.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -186,23 +186,23 @@ Describe "Api" {
}

It "returns users from the post endpoint" {
$users = Invoke-RestMethod -Uri http://localhost:10001/api/user -Method POST -Body @{Test="xyz"}
$users = Invoke-RestMethod -Uri http://localhost:10001/api/user -Method POST -Body @{Test="xyz"} -ContentType 'application/x-www-form-urlencoded'
$users[0] | Should be "Adam"
$users[1] | Should be "Bill"
$users[2] | Should be "Frank"
$users[3] | Should be "xyz"
}

It "returns users from the put endpoint" -Skip {
$users = Invoke-RestMethod -Uri http://localhost:10001/api/user -Method PUT -Body @{Test="xyz"}
It "returns users from the put endpoint" {
$users = Invoke-RestMethod -Uri http://localhost:10001/api/user -Method PUT -Body @{Test="xyz"} -ContentType 'application/x-www-form-urlencoded'
$users[0] | Should be "Adam"
$users[1] | Should be "Bill"
$users[2] | Should be "Frank"
$users[3] | Should be "xyz"
}

It "returns users from the patch endpoint" {
$users = Invoke-RestMethod -Uri http://localhost:10001/api/user -Method Patch -Body @{Test="xyz"}
$users = Invoke-RestMethod -Uri http://localhost:10001/api/user -Method Patch -Body @{Test="xyz"} -ContentType 'application/x-www-form-urlencoded'
$users[0] | Should be "Adam"
$users[1] | Should be "Bill"
$users[2] | Should be "Frank"
Expand Down

0 comments on commit 51a796f

Please sign in to comment.