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

204 improvements #68

Merged
merged 4 commits into from
May 22, 2022
Merged

204 improvements #68

merged 4 commits into from
May 22, 2022

Conversation

im-aIex
Copy link
Contributor

@im-aIex im-aIex commented May 19, 2022

Fixes #10

  • Return 204 on nil error responses
  • Allow void view action by passing empty map[string]interface{}{} to view Handler

@matthewmueller
Copy link
Contributor

matthewmueller commented May 19, 2022

This looks great @theeyed! Do you mind adding a test for Allow void view action by passing empty map[string]interface{}{} to view Handler? There should be some examples you can reference in controller_test.go.

Then I think this one is good to go!

@matthewmueller
Copy link
Contributor

Hey @theeyed, let me know if you don't have time to wrap this up. I don't want this to get stale.

@im-aIex
Copy link
Contributor Author

im-aIex commented May 22, 2022

@matthewmueller got the original test passing. It required adding bud.NodeModules["svelte"] = version.Svelte, which I saw from some other test examples, but I'm not 100% why that's needed. Let me know if that isn't what you were thinking.

@matthewmueller matthewmueller merged commit 63900d2 into livebud:main May 22, 2022
@matthewmueller
Copy link
Contributor

matthewmueller commented May 22, 2022

Excellent, thank you Alex!

The Svelte version is needed because it starts off with a fresh node_modules directory every test run and this test depends on Svelte.

@im-aIex im-aIex deleted the 204-improvements branch May 22, 2022 15:04
matthewmueller pushed a commit that referenced this pull request May 23, 2022
* return 204 on nil error response

* allow void view actions

* fix controller test for 204 nil error response

* Fix `TestEmptyActionWithView`
matthewmueller pushed a commit that referenced this pull request May 23, 2022
* return 204 on nil error response

* allow void view actions

* fix controller test for 204 nil error response

* Fix `TestEmptyActionWithView`
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

Successfully merging this pull request may close these issues.

204 No Content improvements
2 participants