mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-29 20:39:15 +01:00
fix test
This commit is contained in:
parent
98934b6738
commit
9d0fc96d1a
1 changed files with 0 additions and 2 deletions
|
@ -39,7 +39,6 @@ describe('Scroll', () => {
|
||||||
const { document } = new Window();
|
const { document } = new Window();
|
||||||
const div = document.createElement('div');
|
const div = document.createElement('div');
|
||||||
assert.strictEqual(div.scrollTop, 0);
|
assert.strictEqual(div.scrollTop, 0);
|
||||||
(div as any).scrollHeight = 100; // happy-dom has no scrollHeight
|
|
||||||
|
|
||||||
document.body.append(div);
|
document.body.append(div);
|
||||||
|
|
||||||
|
@ -53,7 +52,6 @@ describe('Scroll', () => {
|
||||||
const { document } = new Window();
|
const { document } = new Window();
|
||||||
const div = document.createElement('div');
|
const div = document.createElement('div');
|
||||||
assert.strictEqual(div.scrollTop, 0);
|
assert.strictEqual(div.scrollTop, 0);
|
||||||
(div as any).scrollHeight = 100; // happy-dom has no scrollHeight
|
|
||||||
|
|
||||||
let called = false;
|
let called = false;
|
||||||
onScrollBottom(div as any as HTMLElement, () => called = true);
|
onScrollBottom(div as any as HTMLElement, () => called = true);
|
||||||
|
|
Loading…
Reference in a new issue