Description: Use already traspiled code during tests.
Forwarded: not-needed
Author: Paolo Greppi <paolo.greppi@libpf.com>

--- a/test/mocha.opts
+++ /dev/null
@@ -1 +0,0 @@
---compilers js:babel-register
\ No newline at end of file
--- a/test/test.js
+++ b/test/test.js
@@ -1,6 +1,6 @@
-var babel = require('babel-core');
-import {expect} from 'chai';
-import plugin from '../src';
+var babel = require('@babel/core');
+var expect = require('chai').expect;
+var plugin = require('../lib').default;
 
 describe('babel-plugin-transform-array-includes', function() {
 	it('[1,2,3].includes(1)', function() {
@@ -13,6 +13,6 @@
 	});
 	it('var a=[]; b=a.map(...); b.includes(1)', function() {
 		expect(babel.transform('var a=[];b=a.map(x=>x+1);b.includes(1);', {plugins: [plugin], compact: true}).code)
-			.to.equal('var a=[];b=a.map(x => x+1);b.indexOf(1)!==-1;');
+			.to.equal('var a=[];b=a.map(x=>x+1);b.indexOf(1)!==-1;');
 	});
-});
\ No newline at end of file
+});
