Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit abb7c01

Browse files
committed
chore: fix CI and linting
1 parent 90cc281 commit abb7c01

File tree

2 files changed

+51
-3
lines changed

2 files changed

+51
-3
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"scripts": {
77
"test": "exit 0",
88
"lint": "aegir lint",
9-
"release": "aegir release node --no-docs",
10-
"release-minor": "aegir release node --type minor --no-docs",
11-
"release-major": "aegir release node --type major --no-docs",
9+
"release": "aegir release -t node --no-docs",
10+
"release-minor": "aegir release -t node --type minor --no-docs",
11+
"release-major": "aegir release -t node --type major --no-docs",
1212
"coverage": "exit 0",
1313
"coverage-publish": "exit 0"
1414
},

src/files.js

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,5 +709,53 @@ module.exports = (common) => {
709709
)
710710
})
711711
})
712+
713+
describe('.ls', () => {
714+
it('with a base58 encoded string', (done) => {
715+
const hash = 'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP'
716+
ipfs.ls(hash, (err, files) => {
717+
expect(err).to.not.exist()
718+
files.forEach((file) => delete file.content)
719+
expect(files).to.deep.equal([
720+
{ depth: 1,
721+
name: 'alice.txt',
722+
path: 'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP/alice.txt',
723+
size: 11696,
724+
hash: 'QmZyUEQVuRK3XV7L9Dk26pg6RVSgaYkiSTEdnT2kZZdwoi',
725+
type: 'file' },
726+
{ depth: 1,
727+
name: 'empty-folder',
728+
path: 'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP/empty-folder',
729+
size: 4,
730+
hash: 'QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn',
731+
type: 'dir' },
732+
{ depth: 1,
733+
name: 'files',
734+
path: 'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP/files',
735+
size: 183,
736+
hash: 'QmZ25UfTqXGz9RsEJFg7HUAuBcmfx5dQZDXQd2QEZ8Kj74',
737+
type: 'dir' },
738+
{ depth: 1,
739+
name: 'holmes.txt',
740+
path: 'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP/holmes.txt',
741+
size: 582072,
742+
hash: 'QmR4nFjTu18TyANgC65ArNWp5Yaab1gPzQ4D8zp7Kx3vhr',
743+
type: 'file' },
744+
{ depth: 1,
745+
name: 'jungle.txt',
746+
path: 'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP/jungle.txt',
747+
size: 2305,
748+
hash: 'QmT6orWioMiSqXXPGsUi71CKRRUmJ8YkuueV2DPV34E9y9',
749+
type: 'file' },
750+
{ depth: 1,
751+
name: 'pp.txt',
752+
path: 'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP/pp.txt',
753+
size: 4551,
754+
hash: 'QmVwdDCY4SPGVFnNCiZnX5CtzwWDn6kAM98JXzKxE3kCmn',
755+
type: 'file' } ])
756+
done()
757+
})
758+
})
759+
})
712760
})
713761
}

0 commit comments

Comments
 (0)