Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: increase coverage for events #36668

Closed
wants to merge 1 commit into from

Commits on Dec 31, 2020

  1. test: increase coverage for events

    1. test EventEmitter.setMaxListeners with invalid listener count
    https://coverage.nodejs.org/coverage-0b6d3070a176d437/lib/events.js.html#L171
    
    2. test EventEmitter.setMaxListeners with invalid emitter
    https://coverage.nodejs.org/coverage-0b6d3070a176d437/lib/events.js.html#L186
    
    3. test getEventListeners with invalid emiiter
    Refs: https://coverage.nodejs.org/coverage-0b6d3070a176d437/lib/events.js.html#L706
    
    4. test events.once with options: null
    Refs: https://coverage.nodejs.org/coverage-0b6d3070a176d437/lib/events.js.html#L712
    
    5. add test case for inspect new Event()
    Refs: https://coverage.nodejs.org/coverage-0b6d3070a176d437/lib/internal/event_target.js.html#L111
    
    6. add test case for insepct new EventTarget()
    Refs: https://coverage.nodejs.org/coverage-0b6d3070a176d437/lib/internal/event_target.js.html#L446
    
    7. add test case for Event and EventTarget constructor name
    Lxxyx committed Dec 31, 2020
    Configuration menu
    Copy the full SHA
    0b1e844 View commit details
    Browse the repository at this point in the history