fd22b0bf58
V2 (Laravel re-make)
13 lines
318 B
JavaScript
Vendored
13 lines
318 B
JavaScript
Vendored
var test = require('tap').test;
|
|
var detective = require('../');
|
|
var fs = require('fs');
|
|
var src = fs.readFileSync(__dirname + '/files/word.js');
|
|
|
|
test('word', function (t) {
|
|
t.deepEqual(
|
|
detective(src, { word : 'load' }),
|
|
[ 'a', 'b', 'c', 'events', 'doom', 'y', 'events2' ]
|
|
);
|
|
t.end();
|
|
});
|