10 lines
288 B
TypeScript
10 lines
288 B
TypeScript
import { expect } from './lib/expect.js';
|
|
import '../src/extensions.ts';
|
|
|
|
describe('extensions', () => {
|
|
it('creates empty array extensions', () => {
|
|
expect(([] as any).empty).to.be.true;
|
|
expect(([1] as any).empty).to.be.false;
|
|
expect(([1, 2, 3] as any).empty).to.be.false;
|
|
});
|
|
}) |