securityos/node_modules/lunr/test/test_helper.js

14 lines
328 B
JavaScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
var lunr = require('../lunr.js'),
assert = require('chai').assert,
fs = require('fs'),
path = require('path')
var withFixture = function (name, fn) {
var fixturePath = path.join('test', 'fixtures', name)
fs.readFile(fixturePath, fn)
}
global.lunr = lunr
global.assert = assert
global.withFixture = withFixture