Skip to content

Commit 2be181e

Browse files
author
Benoit Jean
committed
Make Test run again.
1 parent 7bd0a77 commit 2be181e

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

cfg/test.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
2-
2+
let webpack = require('webpack');
33
let path = require('path');
44
let srcPath = path.join(__dirname, '/../src/');
55

@@ -22,7 +22,7 @@ module.exports = {
2222
],
2323
loaders: [
2424
{
25-
test: /\.(png|jpg|gif|woff|woff2|css|sass|scss|less|styl)$/,
25+
test: /\.(png|jpg|gif|woff|woff2|css|sass|scss|less|styl|svg|eot|ttf)$/,
2626
loader: 'null-loader'
2727
},
2828
{
@@ -53,6 +53,10 @@ module.exports = {
5353
plugins: [
5454
new BowerWebpackPlugin({
5555
searchResolveModulesDirectories: false
56+
}),
57+
new webpack.ProvidePlugin({
58+
$: "jquery",
59+
jQuery: "jquery"
5660
})
5761
]
5862
};

src/actions/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
export function addSchool(school){
44
return {
55
school:school,
6-
type:"school:addSchool"
6+
type:'school:addSchool'
77
};
88
}
99

1010
export function deleteSchool(school){
1111
return {
1212
school:school,
13-
type:"school:deleteSchool"
13+
type:'school:deleteSchool'
1414
};
1515
}
1616

src/components/Main.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class AppComponent extends Component {
1616
render() {
1717
const {schools,actions} = this.props;
1818
return (
19-
<SchoolsList schools={schools} actions={actions}/>
19+
<SchoolsList className="index" schools={schools} actions={actions}/>
2020
);
2121
}
2222
}

src/reducers/schools.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
const initialState = [
2-
{name: "Lovedale", tagline: "A wonderful school"},
3-
{name: "Bishop", tagline: "An awesome school"},
4-
{name: "Daffodils", tagline: "An excellent school"}]
2+
{name: 'Lovedale', tagline: 'A wonderful school'},
3+
{name: 'Bishop', tagline: 'An awesome school'},
4+
{name: 'Daffodils', tagline: 'An excellent school'}]
55

66

77
export default function shools(state = initialState, action) {
88
switch (action.type) {
9-
case "school:addSchool":
9+
case 'school:addSchool':
1010
return [
1111
{
1212
name: action.school.name,
@@ -16,7 +16,7 @@ export default function shools(state = initialState, action) {
1616
]
1717

1818

19-
case "school:deleteSchool":
19+
case 'school:deleteSchool':
2020
return state.filter(school =>
2121
school.name !== action.school.name
2222
)

0 commit comments

Comments
 (0)