concept pende test in category electron
appears as: pending test, pending test

This is an excerpt from Manning's book Cross-Platform Desktop Applications: Using Node, Electron, and NW.js.
Because Lunr.js is a client-side library, it needs to attach to the window object, so you stub out (create a stand-in version of) the window object in Mocha to make sure that the library can be accessed and inspected. After that, add a function to the pending test to hold the test code, as shown next.