Skip to content

Commit d70fdc5

Browse files
committed
v0.9.0
1 parent 3e53351 commit d70fdc5

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "data-cli",
3-
"version": "0.8.13",
3+
"version": "0.9.0",
44
"description": "CLI for working with data packages",
55
"main": "./lib/index.js",
66
"bin": {
@@ -73,7 +73,7 @@
7373
"chalk": "^2.3.0",
7474
"clipboardy": "^1.1.4",
7575
"data.js": "^0.11.1",
76-
"datahub-client": "^0.4.4",
76+
"datahub-client": "^0.5.0",
7777
"first-run": "^1.2.0",
7878
"global-packages": "^1.0.2",
7979
"human-readable-ids": "^1.0.3",

test/cli.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ test.after.always('cleanup', t => {
5858
deleteFolderRecursive('test/big-dataset-10mb')
5959
deleteFolderRecursive('test/private-cli-test')
6060
try {
61+
fs.unlinkSync('test/fixtures/test-data/files/geo/datapackage.json')
6162
fs.unlinkSync('sample.csv')
6263
fs.unlinkSync('sample-1-sheet.xls')
6364
fs.unlinkSync('0.csv')
@@ -213,11 +214,10 @@ test('get command with private dataset', async t => {
213214
// =======================================
214215
// CLI commands: validate, cat, info, init
215216

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

223223
// QA tests [Info: basic dataset]

0 commit comments

Comments
 (0)