File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,9 @@ We recommend you use AVA's built-in Babel pipeline to strip Flow type annotation
1515 "ava" : {
1616 "babel" : {
1717 "testOptions" : {
18- "plugins" : [" @babel/plugin-transform-flow-strip-types" ]
18+ "plugins" : [
19+ " @babel/plugin-transform-flow-strip-types"
20+ ]
1921 }
2022 }
2123 }
@@ -87,7 +89,7 @@ class CustomError extends Error {
8789}
8890
8991function myFunc () {
90- throw new CustomError (TypeError (' 🙈' ));
92+ throw new CustomError (new TypeError (' 🙈' ));
9193};
9294
9395test (' throws' , t => {
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ import test from 'ava';
5151
5252const fn = async () => Promise .resolve (' foo' );
5353
54- test (async ( t ) => {
54+ test (async t => {
5555 t .is (await fn (), ' foo' );
5656});
5757```
@@ -153,7 +153,7 @@ class CustomError extends Error {
153153}
154154
155155function myFunc() {
156- throw new CustomError (TypeError (' 🙈' ));
156+ throw new CustomError (new TypeError (' 🙈' ));
157157};
158158
159159test (' throws' , t => {
You can’t perform that action at this time.
0 commit comments