Skip to content

Commit 5f0846c

Browse files
committed
fixed tests
1 parent 7fa8eeb commit 5f0846c

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

test/es5/.eslintrc.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
let config = require('../../es5');
2+
config.env = {
3+
'es6': false,
4+
'browser': true
5+
};
6+
7+
module.exports = config;

test/es5/template-only.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
'use strict';
2+
3+
var b = 'string';
4+
throw new Error(b);

test/es6/.eslintrc.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
let es6 = require('../../es6');
2-
es6.parser = 'babel-eslint';
3-
es6.env = {
1+
let config = require('../../es6');
2+
config.parser = 'babel-eslint';
3+
config.env = {
44
'es6': true,
55
'browser': true
66
};
77

8-
module.exports = es6;
8+
module.exports = config;

test/es6/template-only.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
const a = `abcde`;
22
const b = 'defgh';
3-
const c = "ijklm";
4-
throw new Error(a, b, c);
3+
throw new Error(a, b);

0 commit comments

Comments
 (0)