Skip to content

Commit 2d478b0

Browse files
committed
add negative test
1 parent bb8c35b commit 2d478b0

File tree

1 file changed

+6
-0
lines changed
  • test/interface-tests/src/pin

1 file changed

+6
-0
lines changed

test/interface-tests/src/pin/ls.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ export function testLs (factory: Factory<KuboNode>, options: MochaConfig): void
7777
const pinset = await all(ipfs.pin.ls())
7878

7979
expect(pinset).to.not.be.empty()
80+
8081
// check the three "roots"
8182
expect(pinset).to.deep.include({
8283
type: 'recursive',
@@ -98,6 +99,11 @@ export function testLs (factory: Factory<KuboNode>, options: MochaConfig): void
9899
type: 'indirect',
99100
cid: fixtures.directory.files[1].cid
100101
})
102+
103+
// Verify each pin has no name property
104+
for (const pin of pinset) {
105+
expect(pin).to.not.have.property('name')
106+
}
101107
})
102108

103109
it('should list all direct pins', async () => {

0 commit comments

Comments
 (0)