import {assert} from 'chai';
import * as mm from '../src';
import * as path from 'path';

it("should reject files that can't be parsed", async () => {

  const filePath = path.join(__dirname, 'samples', __filename);

  // Run with default options
  try {
    await mm.parseFile(filePath);
    assert.fail('Should reject a file which cannot be parsed');
  } catch (err) {
    assert.isDefined(err);
    assert.isDefined(err.message);
  }
});

import {assert} from 'chai';
import * as mm from '../src';
import * as path from 'path';

const t = assert;

it("should reject files that can't be parsed", async () => {

  const filePath = path.join(__dirname, 'samples', __filename);

  // Run with default options
  try {
    await mm.parseFile(filePath);
    assert.fail('Should reject a file which cannot be parsed');
  } catch(err) {
    assert.isDefined(err);
    assert.isDefined(err.message);
  }
});

--- 
+++ 
@@ -1,8 +1,6 @@
 import {assert} from 'chai';
 import * as mm from '../src';
 import * as path from 'path';
-
-const t = assert;
 
 it("should reject files that can't be parsed", async () => {
 
@@ -12,7 +10,7 @@
   try {
     await mm.parseFile(filePath);
     assert.fail('Should reject a file which cannot be parsed');
-  } catch(err) {
+  } catch (err) {
     assert.isDefined(err);
     assert.isDefined(err.message);
   }
Remove unused import & fix lint error
