File tree 4 files changed +18
-4
lines changed
4 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 3
3
var omiseResources = require ( './lib/apiResources.js' ) ;
4
4
module . exports = function ( config ) {
5
5
return omiseResources ( config ) ;
6
- } ;
6
+ } ;
Original file line number Diff line number Diff line change @@ -12,5 +12,4 @@ function omiseResources(config) {
12
12
customers : resourceName ( 'Customer' )
13
13
}
14
14
}
15
-
16
- module . exports = omiseResources ;
15
+ module . exports = omiseResources ;
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
1
2
git stash -q --keep-index
3
+
4
+ # check code styling
2
5
npm run jscs
6
+ RESULT=$?
7
+ git stash pop -q
8
+ if [ $RESULT -ne 0 ];
9
+ then
10
+ echo " Inconsistent style, commit has failed."
11
+ exit 1
12
+ fi
13
+ # run test
3
14
npm test
4
15
RESULT=$?
5
16
git stash pop -q
6
- [ $RESULT -ne 0 ] && exit 1
17
+ if [ $RESULT -ne 0 ];
18
+ then
19
+ echo " Test failed, commit has failed."
20
+ exit 1
21
+ fi
7
22
exit 0
You can’t perform that action at this time.
0 commit comments