aboutsummaryrefslogtreecommitdiff
path: root/node_modules/@ava/babel-plugin-throws-helper/readme.md
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-03-27 21:01:33 +0100
committerFlorian Dold <florian.dold@gmail.com>2019-03-27 21:01:33 +0100
commitcc97a4dd2a967e1c2273bd5f4c5f49a5bf2e2585 (patch)
tree92c5d88706a6ffc654d1b133618d357890e7096b /node_modules/@ava/babel-plugin-throws-helper/readme.md
parent3771b4d6b67b34c130f3a9a1a15f42deefdb2eda (diff)
remove node_modules
Diffstat (limited to 'node_modules/@ava/babel-plugin-throws-helper/readme.md')
-rw-r--r--node_modules/@ava/babel-plugin-throws-helper/readme.md33
1 files changed, 0 insertions, 33 deletions
diff --git a/node_modules/@ava/babel-plugin-throws-helper/readme.md b/node_modules/@ava/babel-plugin-throws-helper/readme.md
deleted file mode 100644
index faa91d49d..000000000
--- a/node_modules/@ava/babel-plugin-throws-helper/readme.md
+++ /dev/null
@@ -1,33 +0,0 @@
-# babel-plugin-throws-helper [![Build Status](https://travis-ci.org/avajs/babel-plugin-throws-helper.svg?branch=master)](https://travis-ci.org/avajs/babel-plugin-throws-helper)
-
-> Babel plugin for protecting against improper use of `t.throws()` in [AVA](https://ava.li)
-
-Probably not useful except as an internal plugin for the AVA test runner.
-
-[Genesis of the idea.](https://github.com/sindresorhus/eslint-plugin-ava/issues/75)
-
-## Issue
-
-> I've seen a lot of incorrect use of the throws assertion in other test runner and even done the mistake myself sometimes. Now I'm beginning to see it with AVA too, so would be nice to be preemptive about it.
->
-> People don't realize they need to wrap their call in a function, so many end up doing `t.throws(foo())` instead of `t.throws(() => foo());`. It's an easy mistake to make.
-
-The difficulty is that `t.throws(foo())` is allowed if `foo()` returns a promise or a function. There is no good way to differentiate between the two at runtime. So providing a good error message is going to take some AST transform magic.
-
-
-## Solution
-
-See [`example-output.md`](example-output.md) for the transformation this plugin performs.
-
-The example output can be generated by calling:
-
-```
-$ WRITE_EXAMPLES=1 ava
-```
-
-Contributors should not commit new examples. They will be regenerated as part of the release process.
-
-
-## License
-
-MIT © [James Talmage](https://github.com/jamestalmage)