Skip to content

Commit

Permalink
v0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
anuveyatsu committed Apr 16, 2018
1 parent 3e53351 commit d70fdc5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "data-cli",
"version": "0.8.13",
"version": "0.9.0",
"description": "CLI for working with data packages",
"main": "./lib/index.js",
"bin": {
Expand Down Expand Up @@ -73,7 +73,7 @@
"chalk": "^2.3.0",
"clipboardy": "^1.1.4",
"data.js": "^0.11.1",
"datahub-client": "^0.4.4",
"datahub-client": "^0.5.0",
"first-run": "^1.2.0",
"global-packages": "^1.0.2",
"human-readable-ids": "^1.0.3",
Expand Down
10 changes: 5 additions & 5 deletions test/cli.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ test.after.always('cleanup', t => {
deleteFolderRecursive('test/big-dataset-10mb')
deleteFolderRecursive('test/private-cli-test')
try {
fs.unlinkSync('test/fixtures/test-data/files/geo/datapackage.json')
fs.unlinkSync('sample.csv')
fs.unlinkSync('sample-1-sheet.xls')
fs.unlinkSync('0.csv')
Expand Down Expand Up @@ -213,11 +214,10 @@ test('get command with private dataset', async t => {
// =======================================
// CLI commands: validate, cat, info, init

test('runs init command with data input', async t => {
const cliPath = path.join(__dirname, '../bin/data-init.js')
const result = await run([cliPath], ['my-datapackage', ENTER])
t.true(result.includes('? Enter Data Package name (scratchpad)'))
t.true(result.includes('my-datapackage'))
test('Init command in non-interactive mode', async t => {
const result = await runcli('init', 'test/fixtures/test-data/files/geo/')
t.true(result.stdout.includes('This process initializes a new datapackage.json file'))
t.true(result.stdout.includes('datapackage.json file is saved in'))
})

// QA tests [Info: basic dataset]
Expand Down

0 comments on commit d70fdc5

Please sign in to comment.