UNPKG

moy-dom

Version:

A flexiable Virtual DOM library for building modern web interface.

14 lines (12 loc) 301 B
import remove from '../../src/listDiff/remove' describe('test for remove', () => { test('simple test', () => { const list = [1, 2, 3, 4], changes = [] remove(2, list, changes) expect(list).toEqual([1, 2, 4]) expect(changes).toEqual([{ type: 0, index: 2, }]) }) })