Skip to content

Commit 1d3b0b2

Browse files
committed
fix #3
object array spacing and destructuring spacing tests
1 parent ca9b1ba commit 1d3b0b2

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

test/es5/object-array-spacing.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
'use strict';
2+
3+
// http://eslint.org/docs/rules/array-bracket-spacing.html
4+
// http://eslint.org/docs/rules/object-curly-spacing.html
5+
var array = [1, 2, 3];
6+
var object = {a: 1, b: 2};
7+
throw new Error(array, object);

test/es6/destructuring-spacing.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// http://eslint.org/docs/rules/array-bracket-spacing.html
2+
// http://eslint.org/docs/rules/object-curly-spacing.html
3+
const [a, , c] = [1, 2, 3];
4+
const {d, e} = {a: 1, b: 2};
5+
const obj = {a, c, d, e};
6+
throw new Error(a, c, d, e, obj);

0 commit comments

Comments
 (0)