Skip to content
This repository has been archived by the owner on Jan 11, 2022. It is now read-only.

Commit

Permalink
Fixed path error in bin/rlp CLI command, activated associated integra…
Browse files Browse the repository at this point in the history
…tion test
  • Loading branch information
holgerd77 committed Dec 20, 2018
1 parent beddc69 commit 75fb081
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bin/rlp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node

const rlp = require('./dist/index.js')
const rlp = require('../dist/index.js')
const command = process.argv[2]
var raw = process.argv[3]

Expand Down
11 changes: 3 additions & 8 deletions test/integration.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as assert from 'assert'
import { exec } from 'child_process'
import * as RLP from '../dist'

describe('Distribution:', function() {
Expand All @@ -9,16 +10,10 @@ describe('Distribution:', function() {
})
})

/*
describe('CLI command:', function() {
it('should be able to run CLI command', function() {
const execP = util.promisify(exec)
async function bin() {
const { stdout, stderr } = await execP('./bin/rlp encode "[ 5 ]"')
exec('./bin/rlp encode "[ 5 ]"', (_error, stdout, _stderr) => {
assert.equal(stdout.trim(), 'c105')
}
bin()
})
})
})
*/

0 comments on commit 75fb081

Please sign in to comment.