Chore: add object option test cases in yield-star-spacing #12679
What is the purpose of this pull request? (put an "X" next to item)
[ ] Documentation update
Added test cases for covering this branch(screenshot) in
This PR increases test coverage for yield-star-spacing
What changes did you make? (Give an overview)
Add test cases(object option).
Is there anything you'd like reviewers to focus on?