Skip to content

Commit ef6eb4d

Browse files
committed
Merge pull request #657 from strawbrary/master
Re-enable block-scoped-var + padded-blocks
2 parents 3f1d950 + 1bd2e18 commit ef6eb4d

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

.eslintrc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212
"import/namespace": 0,
1313
"import/no-unresolved": 0,
1414
"import/no-named-as-default": 2,
15-
// Temporarirly disabled due to a possible bug in babel-eslint (todomvc example)
16-
"block-scoped-var": 0,
17-
// Temporarily disabled for test/* until babel/babel-eslint#33 is resolved
18-
"padded-blocks": 0,
1915
"comma-dangle": 0, // not sure why airbnb turned this on. gross!
2016
"indent": [2, 2, {"SwitchCase": 1}],
2117
"no-console": 0,

api/actions/__tests__/widget-load-test.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@ import load from '../widget/load';
33
import sinon from 'sinon';
44

55
describe('widget load', () => {
6-
76
afterEach(()=> {
87
if ('restore' in Math.random) {
98
Math.random.restore(); // reset the Math.random fixture
109
}
1110
});
1211

1312
describe('successful', () => {
14-
1513
beforeEach(()=> {
1614
sinon.stub(Math, 'random').returns(0.4);
1715
});
@@ -28,12 +26,9 @@ describe('widget load', () => {
2826
expect(widgets[0].color).to.equal('Red');
2927
});
3028
});
31-
3229
});
3330

34-
3531
describe('unsuccessful', () => {
36-
3732
beforeEach(()=> {
3833
sinon.stub(Math, 'random').returns(0.2);
3934
});
@@ -47,6 +42,5 @@ describe('widget load', () => {
4742
expect(err).to.equal('Widget load fails 33% of the time. You were unlucky.');
4843
});
4944
});
50-
5145
});
5246
});

api/actions/__tests__/widget-update-test.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@ import update from '../widget/update';
33
import sinon from 'sinon';
44

55
describe('widget update', () => {
6-
76
afterEach(()=> {
87
if ('restore' in Math.random) {
98
Math.random.restore(); // reset the Math.random fixture
109
}
1110
});
1211

1312
describe('randomly successful', () => {
14-
1513
beforeEach(()=> {
1614
sinon.stub(Math, 'random').returns(0.3);
1715
});
@@ -37,7 +35,6 @@ describe('widget update', () => {
3735
});
3836

3937
describe('randomly unsuccessful', () => {
40-
4138
beforeEach(()=> {
4239
sinon.stub(Math, 'random').returns(0.1);
4340
});

0 commit comments

Comments
 (0)