VirtusLab-Open-Source / strapi-plugin-comments

A plugin for Strapi Headless CMS that provides end to end comments feature with their moderation panel, bad words filtering, abuse reporting and more.
MIT License
409 stars 64 forks source link

[CU-2cq6299] chore/api service client tests #134

Closed cyp3rius closed 2 years ago

cyp3rius commented 2 years ago

Ticket

N/A

Summary

What does this PR do/solve?

Significantly increased tests coverage for client service.

Test Plan

yarn test:unit

codecov-commenter commented 2 years ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (develop@9c90133). Click here to learn what that means. The diff coverage is n/a.

@@            Coverage Diff             @@
##             develop     #134   +/-   ##
==========================================
  Coverage           ?   61.85%           
==========================================
  Files              ?        9           
  Lines              ?      506           
  Branches           ?      192           
==========================================
  Hits               ?      313           
  Misses             ?      190           
  Partials           ?        3           
Flag Coverage Δ
unittest 61.85% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 9c90133...625d3d2. Read the comment docs.

cyp3rius commented 2 years ago

Task linked: CU-2cq6299 Increase tests and typing coverity