UNPKG

@splidejs/splide

Version:

Splide is a lightweight, flexible and accessible slider/carousel. No dependencies, no Lighthouse errors.

13 lines (9 loc) 257 B
import { empty } from './empty'; describe( 'empty', () => { test( 'can empty an array.', () => { const array = [ 1, 2, 3 ]; empty( array ); expect( array[ 0 ] ).toBeUndefined(); expect( array.length ).toBe( 0 ); } ); } );