feat: publish HoloLake model-native living system source
This commit is contained in:
parent
6ad10edde1
commit
c395dd3a99
2467 changed files with 615073 additions and 0 deletions
|
|
@ -0,0 +1,15 @@
|
|||
import { describe, expect, it } from 'vitest'
|
||||
import { getMountedBoundingClientRectCache } from '@blocknote/react'
|
||||
|
||||
describe('patched BlockNote popover references', () => {
|
||||
it('uses the virtual rect when a remounting suggestion menu has no DOM element', () => {
|
||||
const fallbackRect = new DOMRect(4, 8, 16, 24)
|
||||
const readRect = getMountedBoundingClientRectCache({
|
||||
element: undefined,
|
||||
getBoundingClientRect: () => fallbackRect,
|
||||
} as never)
|
||||
|
||||
expect(() => readRect()).not.toThrow()
|
||||
expect(readRect()).toBe(fallbackRect)
|
||||
})
|
||||
})
|
||||
Loading…
Reference in a new issue