mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
19 lines
688 B
HTML
19 lines
688 B
HTML
<template name="pkg_audit_argument_checks">
|
|
{{#markdown}}
|
|
|
|
## `audit-argument-checks`
|
|
|
|
This package causes Meteor to require that all arguments passed to methods and
|
|
publish functions are [`check`ed](#check). Any method that does not pass each
|
|
one of its arguments to `check` will throw an error, which will be logged on the
|
|
server and which will appear to the client as a
|
|
`500 Internal server error`. This is a simple way to help ensure that your
|
|
app has complete check coverage.
|
|
|
|
Methods and publish functions that do not need to validate their arguments can
|
|
simply run `check(arguments, [Match.Any])` to satisfy the
|
|
`audit-argument-checks` coverage checker.
|
|
|
|
{{/markdown}}
|
|
</template>
|