提交 7646b358 编写于 作者: R Rob Lourens

Fix searchResult tests

上级 4cf9c461
......@@ -236,7 +236,7 @@ suite('SearchResult', () => {
testObject.remove(objectToRemove);
assert.ok(target.calledOnce);
assert.deepEqual([{ elements: [objectToRemove], removed: true }], target.args[0]);
assert.deepEqual([{ elements: [objectToRemove], removed: true, userRemoved: false }], target.args[0]);
});
test('remove array triggers change event', function () {
......@@ -253,7 +253,7 @@ suite('SearchResult', () => {
testObject.remove(arrayToRemove);
assert.ok(target.calledOnce);
assert.deepEqual([{ elements: arrayToRemove, removed: true }], target.args[0]);
assert.deepEqual([{ elements: arrayToRemove, removed: true, userRemoved: false }], target.args[0]);
});
test('remove triggers change event', function () {
......@@ -268,7 +268,7 @@ suite('SearchResult', () => {
testObject.remove(objectToRemove);
assert.ok(target.calledOnce);
assert.deepEqual([{ elements: [objectToRemove], removed: true }], target.args[0]);
assert.deepEqual([{ elements: [objectToRemove], removed: true, userRemoved: false }], target.args[0]);
});
test('Removing all line matches and adding back will add file back to result', function () {
......@@ -315,7 +315,7 @@ suite('SearchResult', () => {
return voidPromise.then(() => {
assert.ok(target.calledOnce);
assert.deepEqual([{ elements: [objectToRemove], removed: true }], target.args[0]);
assert.deepEqual([{ elements: [objectToRemove], removed: true, userRemoved: false }], target.args[0]);
});
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册