Skip to content

Commit

Permalink
housekeeping: bump argparse dependency to ^1.0.10 (via #349)
Browse files Browse the repository at this point in the history
  • Loading branch information
shockey authored Jul 21, 2019
2 parents 4240559 + 27a1b4d commit 8b956fd
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"coverage": "yarn add coveralls@2 && nyc report --reporter=text-lcov | coveralls"
},
"dependencies": {
"argparse": "~0.1.15",
"argparse": "^1.0.10",
"autolinker": "~0.28.0"
},
"devDependencies": {
Expand Down
25 changes: 25 additions & 0 deletions test/cli.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
const ChildProcess = require("child_process")
var assert = require('assert');

// placed here to make multiline indentation easier, feel free to move if you're
// adding more tests here
const desiredOutput = `<h3>This is a simple Markdown document</h3>
<blockquote>
<p>It’s really just here to make sure the Remarkable CLI can take a Markdown
document as an input</p>
</blockquote>
<p><strong>It’s not comprehensive or anything</strong></p>
<p>Hopefully the CLI can handle it though</p>
`

describe("Remarkable CLI", function() {
it("simple Markdown file as input", function() {
const output = ChildProcess.execSync(
"../bin/remarkable.js ./fixtures/cli-input.md",
{
cwd: __dirname
}
)
assert.strictEqual(output.toString(), desiredOutput)
})
})
8 changes: 8 additions & 0 deletions test/fixtures/cli-input.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
### This is a simple Markdown document

> It's really just here to make sure the Remarkable CLI can take a Markdown
> document as an input
**It's not comprehensive or anything**

Hopefully the CLI can handle it though
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ archy@^1.0.0:
resolved "https://registry.yarnpkg.com/archy/-/archy-1.0.0.tgz#f9c8c13757cc1dd7bc379ac77b2c62a5c2868c40"
integrity sha1-+cjBN1fMHde8N5rHeyxipcKGjEA=

argparse@^1.0.7:
argparse@^1.0.10, argparse@^1.0.7:
version "1.0.10"
resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911"
integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==
Expand Down

0 comments on commit 8b956fd

Please sign in to comment.