gosimple / slug

URL-friendly slugify with multiple languages support.
Mozilla Public License 2.0
1.17k stars 109 forks source link

Fix some order dependent tests #83

Closed vannem-sj closed 9 months ago

vannem-sj commented 1 year ago

These tests were modifying global state and not resetting it. Clearing the CustomSub lets the tests run in any order.

codecov[bot] commented 1 year ago

Codecov Report

Merging #83 (91ec822) into master (1eab316) will not change coverage. The diff coverage is n/a.

@@            Coverage Diff            @@
##            master       #83   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines          142       142           
=========================================
  Hits           142       142           
matrixik commented 9 months ago

Thank you for this fix.