node tests: Use set_find_results in stream_edit test.

This commit is contained in:
Steve Howell
2021-12-22 13:28:40 +00:00
committed by Tim Abbott
parent 507da749b7
commit 0574d951e4
2 changed files with 15 additions and 30 deletions

View File

@@ -202,6 +202,11 @@ function FakeElement(selector, opts) {
return self;
},
set_find_results(find_selector, jquery_object) {
if (jquery_object === undefined) {
throw new Error(
"Please make the 'find result' be something like $.create('unused')",
);
}
find_results.set(find_selector, jquery_object);
},
set_height(fake_height) {