File "empty.test.ts"

Full path: /home/fsibplc/public_html/sommilito-bank2/splide-4.1.3/src/js/utils/array/empty/empty.test.ts
File size: 245 B (245 B bytes)
MIME-type: text/x-java
Charset: utf-8

Download   Open   Edit   Advanced Editor   Back

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 );
  } );
} );