Skip to content

Instantly share code, notes, and snippets.

@lrlna
Created February 14, 2016 18:04
Show Gist options
  • Save lrlna/6394a854ea2265e501be to your computer and use it in GitHub Desktop.
Save lrlna/6394a854ea2265e501be to your computer and use it in GitHub Desktop.
irina@aniri-Satellite-L350 ~/developer/yargs $ npm test

> yargs@3.32.0 pretest /home/irina/developer/yargs
> standard


> yargs@3.32.0 test /home/irina/developer/yargs
> nyc --cache mocha --require ./test/before.js --timeout=4000 --check-leaks



  Command
    positional arguments
      ✓ parses command string and populates optional and required positional arguments
      ✓ populates inner argv with positional arguments
      ✓ populates outer argv with positional arguments
    missing positional arguments
      ✓ fails if a required argument is missing
      ✓ does not fail if optional argument is missing

  Completion
    ✓ does not apply validation when --get-yargs-completions is passed in
    default completion behavior
      ✓ it returns a list of commands as completion suggestions
      ✓ avoids repeating already included commands
      ✓ completes options for a command
----------------|----------|----------|----------|----------|----------------|
File            |  % Stmts | % Branch |  % Funcs |  % Lines |Uncovered Lines |
----------------|----------|----------|----------|----------|----------------|
 __root__/      |     98.1 |    93.48 |    97.44 |    98.75 |                |
  index.js      |     98.1 |    93.48 |    97.44 |    98.75 |... 517,615,616 |
 lib/           |    93.37 |    84.62 |    96.97 |    95.51 |                |
  command.js    |      100 |      100 |      100 |      100 |                |
  completion.js |      100 |      100 |      100 |      100 |                |
  obj-filter.js |     87.5 |    83.33 |    66.67 |      100 |                |
  usage.js      |    86.97 |    72.87 |    95.74 |    90.43 |... 360,362,366 |
  validation.js |      100 |    95.12 |      100 |      100 |                |
----------------|----------|----------|----------|----------|----------------|
All files       |    95.57 |    88.78 |    97.18 |    97.04 |                |
----------------|----------|----------|----------|----------|----------------|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment