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

@@ -1,69 +1,28 @@
-var chai = require('chai');%0Avar expect = chai.
+import %7B 
 expect
-;%0Avar
+,
  assert 
 = ch
@@ -21,21 +21,21 @@
 ert 
-= chai.assert
+%7D from 'chai'
 ;%0A%0Ad

Convert tests to ESM