var chai = require('chai');
var expect = chai.expect;
var assert = chai.assert;

describe('Example', function(){
  it('does something', function(){
    expect( 1 ).to.equal( 1 );
  });

  it('does something else', function(){
    expect( 2 + 2 ).to.equal( 4 );
  });
});

import { expect, assert } from 'chai';

describe('Example', function(){
  it('does something', function(){
    expect( 1 ).to.equal( 1 );
  });

  it('does something else', function(){
    expect( 2 + 2 ).to.equal( 4 );
  });
});

Convert tests to ESM