这是indexloc提供的服务,不要输入任何密码
Skip to content

Client Improvement: Move getValidRequestBody method from client to core-client utils #2604

@franworks

Description

@franworks

In the spirit of being DRY and making common methods reusable. The recently added getValidRequestBody should be moved out of each client implementation into a the client-core utils file.

  • Refactor the angular, fetch, axios, and next clients to import and implement the getValidRequestBody method.
  • Add tests
  • Existing tests should continue to pass
  • Update snapshots

Related to changes introduced: #2564, #2600

I will submit a PR for this change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clientClient package relatedinternal ⚙️Internal development related

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions