File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Changes to PostCSS Tape
2
2
3
+ ### 1.2.1 (December 14, 2016)
4
+
5
+ - Updated: Throw existing error
6
+ - Updated: Run ` after ` even if test fails
7
+
3
8
### 1.2.0 (December 14, 2016)
4
9
5
10
- Added: Expected ` error ` option
Original file line number Diff line number Diff line change @@ -106,6 +106,10 @@ Promise.all(Object.keys(tests).map(
106
106
if ( expectedError ) {
107
107
return ` ${ pass } ${ test . message } ` ;
108
108
} else {
109
+ if ( test . after ) {
110
+ test . after ( ) ;
111
+ }
112
+
109
113
throw error ;
110
114
}
111
115
}
@@ -124,10 +128,10 @@ Promise.all(Object.keys(tests).map(
124
128
) . then (
125
129
( messages ) => process . stdout . write ( `${ pass } ${ section } \n${ messages . join ( '\n' ) } \n` )
126
130
) . catch (
127
- ( error ) => {
128
- process . stdout . write ( `${ fail } ${ section } \n${ error . message } \n` ) ;
131
+ ( error ) => {
132
+ process . stdout . write ( `${ fail } ${ section } \n${ error } \n` ) ;
129
133
130
- throw Error ;
134
+ throw error ;
131
135
}
132
136
)
133
137
) ) . then (
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " postcss-tape" ,
3
- "version" : " 1.2.0 " ,
3
+ "version" : " 1.2.1 " ,
4
4
"description" : " Quickly test a PostCSS Plugin" ,
5
5
"author" : " Jonathan Neal <jonathantneal@hotmail.com>" ,
6
6
"license" : " CC0-1.0" ,
You can’t perform that action at this time.
0 commit comments