• Robert Knight's avatar
    Make minor "close" event testing improvements · f6ca8fad
    Robert Knight authored
     - Use asserts to verify that "close" events are not emitted earlier
       than they should be, rather than blindly resetting the close event
       listener stub.
     - Reset the sinon sandbox after each test to ensure any DOM APIs are
       unmocked
    f6ca8fad
port-rpc-test.js 9.13 KB