bring-shrubbery / use-cookie-consent

Smol (~1kB gzipped) hook for managing GDPR cookie consent state.
https://use-cookie-consent.js.org
MIT License
403 stars 15 forks source link

cypress, test for default cookie #32

Closed Stalkakuma closed 2 years ago

Stalkakuma commented 2 years ago

Added Cypress and wrote two tests that should:

  1. Check if the cookie is set
  2. Check if cookie has it's value updated
codecov-commenter commented 2 years ago

Codecov Report

Merging #32 (10b8969) into main (3b675ad) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #32   +/-   ##
=======================================
  Coverage   92.00%   92.00%           
=======================================
  Files           3        3           
  Lines          50       50           
  Branches       17       17           
=======================================
  Hits           46       46           
  Misses          3        3           
  Partials        1        1           

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 3b675ad...10b8969. Read the comment docs.