From fff45e143137b2a0fad21378c2ad9e8d271a28c7 Mon Sep 17 00:00:00 2001 From: hacksalot Date: Fri, 15 Jan 2016 13:36:57 -0500 Subject: [PATCH] Update tests. --- test/test-hmr.txt | 25 ++++++++++++++++--------- test/test-stdout.js | 2 +- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/test/test-hmr.txt b/test/test-hmr.txt index c380b1c..817b240 100644 --- a/test/test-hmr.txt +++ b/test/test-hmr.txt @@ -1,20 +1,27 @@ 0| -3|build -8|new -3|analyze -3|convert -3|validate -5|notacommand 4|--help 4|-h 4|--debug 4|-d +5|notacommand +3|build 14|build doesnt-exist.json -14|analyze doesnt-exist.json -7|convert doesnt-exist.json -14|validate doesnt-exist.json 1|build doesnt-exist.json -t not-a-theme 1|build doesnt-exist.json -t node_modules/not-a-theme +8|new 0|new test/sandbox/cli-test/new-empty-resume.auto.json 0|new test/sandbox/cli-test/new-empty-resume.jrs.json -f jrs 0|new test/sandbox/cli-test/new-empty-resume.fresh.json -f fresh +3|analyze +14|analyze doesnt-exist.json +3|convert +7|convert doesnt-exist.json +3|validate +14|validate doesnt-exist.json +0|validate node_modules/fresh-test-resumes/src/jane-fullstacker.fresh.json +3|peek +14|peek doesnt-exist.json +14|peek doesnt-exist.json not.a.path +0|peek test/resumes/jrs-0.0.0/richard-hendriks.json work[0] +0|peek node_modules/fresh-test-resumes/src/jane-fullstacker.fresh.json employment.history[1] +0|peek node_modules/fresh-test-resumes/src/johnny-trouble.fresh.json skills.sets diff --git a/test/test-stdout.js b/test/test-stdout.js index b95cd71..ee7d8db 100644 --- a/test/test-stdout.js +++ b/test/test-stdout.js @@ -80,7 +80,7 @@ describe('Testing Ouput interface', function () { var manPage = FS.readFileSync( PATH.resolve( __dirname, '../src/cli/use.txt' ), 'utf8'); run('HMR should output a help string when no command is specified', - [], [ title, 'Please give me a command (BUILD, ANALYZE, VALIDATE, CONVERT, or NEW).' ]); + [], [ title, 'Please give me a command (BUILD, ANALYZE, VALIDATE, CONVERT, NEW, or PEEK).' ]); run('BUILD should output a tip when no source is specified', ['build'], [ title, feedMe ]);