[occur] fixing occur lines
This commit is contained in:
parent
7f1e926f3c
commit
8102b6579f
2 changed files with 9 additions and 7 deletions
|
|
@ -55,9 +55,9 @@ module.exports = {
|
|||
},
|
||||
|
||||
"test: find lines matching" : function() {
|
||||
session.doc.insertLines(0, ['abc', 'def', 'xyz', 'bcx']);
|
||||
session.doc.insertLines(0, ['abc', 'def', 'xyz', 'bcxbc']);
|
||||
var result = occur.matchingLines(session, {needle: 'bc'}),
|
||||
expected = [{row: 0, content: 'abc'}, {row: 3, content: 'bcx'}];
|
||||
expected = [{row: 0, content: 'abc'}, {row: 3, content: 'bcxbc'}];
|
||||
assert.deepEqual(result, expected);
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue