UNPKG

moy-dom

Version:

A flexiable Virtual DOM library for building modern web interface.

14 lines (12 loc) 284 B
import append from '../../src/listDiff/append' describe('test for append', () => { test('simple test', () => { const list = [], changes = [] append(3, list, changes) expect(list).toEqual([3]) expect(changes).toEqual([{ type: 3, item: 3, }]) }) })