DefactoSoftware / test_selector

Elixir library to help selecting the right elements in your tests.
MIT License
14 stars 2 forks source link

raise when conn is supplied as first argument #27

Closed fatboypunk closed 4 years ago

fatboypunk commented 4 years ago

Because we expect html as input and therefore it won't successfully work with a supplied conn.

This commit adds a pattern match on the find_test_selectors for conn and when it matches it will raise an error.

codecov[bot] commented 4 years ago

Codecov Report

Merging #27 into master will increase coverage by 1.73%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #27      +/-   ##
==========================================
+ Coverage   84.37%   86.11%   +1.73%     
==========================================
  Files           3        3              
  Lines          32       36       +4     
==========================================
+ Hits           27       31       +4     
  Misses          5        5              
Impacted Files Coverage Δ
lib/test_selector/test/floki_helpers.ex 100.00% <100.00%> (ø)

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 9df75cb...dec5f85. Read the comment docs.