diff --git a/src/buckets.spec.ts b/src/buckets.spec.ts index f86985db8..75492ba61 100644 --- a/src/buckets.spec.ts +++ b/src/buckets.spec.ts @@ -135,14 +135,6 @@ describe('Buckets...', () => { expect(rep.item?.isdir).to.be.false }) - it('should list bucket links', async () => { - const rootKey = buck.root?.key || '' - - const rep = await client.links(rootKey) - expect(rep.url).to.not.equal('') - expect(rep.ipns).to.not.equal('') - }) - it('should pull files by path and write to file on node', async function () { if (isBrowser) return this.skip() // Bucket path @@ -188,6 +180,14 @@ describe('Buckets...', () => { expect(list.item?.itemsList).to.have.length(1) }) + it('should list bucket links', async () => { + const rootKey = buck.root?.key || '' + + const rep = await client.links(rootKey) + expect(rep.url).to.not.equal('') + expect(rep.ipns).to.not.equal('') + }) + it('should remove an entire bucket', async () => { const rootKey = buck.root?.key || '' const rep = await client.listPath(rootKey, 'dir1/file1.jpg')