chore: remove outdated todos
This commit is contained in:
parent
9fcd30b483
commit
8de1c484ff
@ -149,7 +149,6 @@ export function createRenderer(options: RendererOptions) {
|
|||||||
newNode: RenderNode | RenderFragment,
|
newNode: RenderNode | RenderFragment,
|
||||||
refNode: RenderNode | RenderFragment | null
|
refNode: RenderNode | RenderFragment | null
|
||||||
) {
|
) {
|
||||||
// TODO special case for Fragment
|
|
||||||
if (refNode === null) {
|
if (refNode === null) {
|
||||||
appendChild(container, newNode)
|
appendChild(container, newNode)
|
||||||
} else {
|
} else {
|
||||||
|
@ -323,8 +323,6 @@ describe('observer/autorun', () => {
|
|||||||
|
|
||||||
it('should allow explicitly recursive raw function loops', () => {
|
it('should allow explicitly recursive raw function loops', () => {
|
||||||
const counter = observable({ num: 0 })
|
const counter = observable({ num: 0 })
|
||||||
|
|
||||||
// TODO: this should be changed to autorun loops, can it be done?
|
|
||||||
const numSpy = jest.fn(() => {
|
const numSpy = jest.fn(() => {
|
||||||
counter.num++
|
counter.num++
|
||||||
if (counter.num < 10) {
|
if (counter.num < 10) {
|
||||||
@ -332,7 +330,6 @@ describe('observer/autorun', () => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
autorun(numSpy)
|
autorun(numSpy)
|
||||||
|
|
||||||
expect(counter.num).toEqual(10)
|
expect(counter.num).toEqual(10)
|
||||||
expect(numSpy).toHaveBeenCalledTimes(10)
|
expect(numSpy).toHaveBeenCalledTimes(10)
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user