concept Lorikeet app in category electron
appears as: The Lorikeet app, Lorikeet app

This is an excerpt from Manning's book Cross-Platform Desktop Applications: Using Node, Electron, and NW.js.
Figure 2.3. The Lorikeet app running on Electron. This is what Electron apps look like by default—pretty much like the NW.js variant.
![]()
The Electron app looks almost identical to the NW.js app. The index.html file is exactly the same as the one used for the NW.js variant of the Lorikeet app, and to load the application from the command line is practically the same.
Listing 16.4. The search.test.js file for the Lorikeet app
'use strict'; const assert = require('assert'); const lunr = require('lunr'); const search = require('../search'); global.window = {}; global.window.lunr = lunr; describe('search', () => { describe('#find', () => { it('should return results when a file matches a term', (done) => { const seedFileReferences = [ { file: 'john.png', type: 'image/png', path: '/Users/pauljensen/Pictures/john.png' }, { file: 'bob.png', type: 'image/png', path: '/Users/pauljensen/Pictures/bob.png' }, { file: 'frank.png', type: 'image/png', path: '/Users/pauljensen/Pictures/frank.png' } ]; search.resetIndex(); seedFileReferences.forEach(search.addToIndex); search.find('frank', (results) => { assert(results.length === 1); assert.equal(seedFileReferences[2].path, results[0].ref); done(); }); }); }); });