Skip to content

Commit cfea018

Browse files
author
dphaener
committed
Fix eslint errors in build
1 parent 6ddda1b commit cfea018

4 files changed

Lines changed: 20 additions & 21 deletions

File tree

src/alt/alt.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import Alt from 'alt';
1+
import Alt from 'alt'
22

3-
export default new Alt();
3+
export default new Alt()

src/alt/store.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import 'harmony-reflect'
2-
import alt from './alt'
32

43
class TestStore {
54
constructor(store, actions) {

tests/store.jsx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { expect } from 'chai';
2-
import TestStore from '../src/alt/store';
1+
import { expect } from 'chai'
2+
import TestStore from '../src/alt/store'
33

4-
import { MyStore, MyActions } from './testStore';
4+
import { MyStore, MyActions } from './testStore'
55

66
describe('TestStore', () => {
77
let todos = [
@@ -13,7 +13,7 @@ describe('TestStore', () => {
1313
title: "Get Bread",
1414
complete: false
1515
}
16-
];
16+
]
1717

1818
let expected = [
1919
{
@@ -28,27 +28,27 @@ describe('TestStore', () => {
2828
title: "Get Beer",
2929
complete: false
3030
}
31-
];
31+
]
3232

3333
describe('#action', () => {
3434
it('should call a method on the actions', () => {
3535
TestStore(MyStore, MyActions)
3636
.setInitialState({ todos: todos })
3737
.action('addTodo', { title: "Get Beer", complete: false })
3838
.test(({ state }) => {
39-
expect(state.todos).to.eql(expected);
40-
});
41-
});
42-
});
39+
expect(state.todos).to.eql(expected)
40+
})
41+
})
42+
})
4343

4444
describe('proxy', () => {
4545
it('should proxy missing method calls to the call function', () => {
4646
TestStore(MyStore, MyActions)
4747
.setInitialState({ todos: todos })
4848
.addTodo({ title: "Get Beer", complete: false })
4949
.test(({ state }) => {
50-
expect(state.todos).to.eql(expected);
51-
});
52-
});
53-
});
54-
});
50+
expect(state.todos).to.eql(expected)
51+
})
52+
})
53+
})
54+
})

tests/testStore.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import alt from '../src/alt/alt';
1+
import alt from '../src/alt/alt'
22

33
class myActions {
44
constructor() {
55
this.generateActions('addTodo', 'setInitialState')
66
}
77
}
88

9-
const MyActions = alt.createActions(myActions);
9+
const MyActions = alt.createActions(myActions)
1010

1111
class myStore {
1212
constructor() {
@@ -18,9 +18,9 @@ class myStore {
1818
}
1919

2020
addTodo(todo) {
21-
this.setState({ todos: this.todos.concat(todo) });
21+
this.setState({ todos: this.todos.concat(todo) })
2222
}
2323
}
2424

25-
const MyStore = alt.createStore(myStore, 'MyStore');
25+
const MyStore = alt.createStore(myStore, 'MyStore')
2626
export { MyStore, MyActions }

0 commit comments

Comments
 (0)