You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
t.test('no keys and no values not decoding',function(t){vardecoder=codec.createStreamDecoder({})t.equal(decoder(null,Buffer.from('hey')),undefined)t.equal(decoder(Buffer.from('hey')),undefined)t.end()})
The test works (passes) and covers the line correctly. However, for some reason nyc reports new lines in the code that aren't covered, which seems a bit weird to me. How can adding an extra test remove coverage? At worst it it's a bad test that doesn't add coverage, but it should never remove coverage imo. See below:
What's going on here?
The text was updated successfully, but these errors were encountered:
So, given the current state we have the following results:
I want to write a test that covers the following line
codec/index.js
Line 97 in 63d29a5
So I add the following test:
The test works (passes) and covers the line correctly. However, for some reason
nyc
reports new lines in the code that aren't covered, which seems a bit weird to me. How can adding an extra test remove coverage? At worst it it's a bad test that doesn't add coverage, but it should never remove coverage imo. See below:What's going on here?
The text was updated successfully, but these errors were encountered: