dwmkerr / chatgpt-diagrams-extension

A Chrome browser extension that renders diagrams in the ChatGPT website inline.
MIT License
13 stars 3 forks source link

fix: validate mermaid content is correct in tests #23

Closed dwmkerr closed 1 year ago

dwmkerr commented 1 year ago

Adds a test verifying #20 for both positive and negative cases.

Fixes #20.

codecov[bot] commented 1 year ago

Codecov Report

Merging #23 (4bd7629) into main (5efc5f6) will increase coverage by 2.75%. The diff coverage is 100.00%.

:exclamation: Current head 4bd7629 differs from pull request most recent head 7587f8f. Consider uploading reports for the commit 7587f8f to get more accurate results

@@            Coverage Diff             @@
##             main      #23      +/-   ##
==========================================
+ Coverage   57.03%   59.79%   +2.75%     
==========================================
  Files           5        5              
  Lines         270      286      +16     
  Branches       15       18       +3     
==========================================
+ Hits          154      171      +17     
  Misses        113      113              
+ Partials        3        2       -1     
Impacted Files Coverage Δ
src/lib/chatgpt-dom.ts 96.59% <100.00%> (+1.17%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more