Skip to content

Commit

Permalink
feat: update bee-js (#488)
Browse files Browse the repository at this point in the history
* feat: update bee-js

* test(fix): cast types
  • Loading branch information
Cafe137 committed Jan 17, 2024
1 parent 54dceec commit 4965eb1
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 14 deletions.
59 changes: 50 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"typescript": "^4.8.3"
},
"dependencies": {
"@ethersphere/bee-js": "^6.4.0",
"@ethersphere/bee-js": "^6.7.2",
"@ethersphere/swarm-cid": "^0.1.0",
"axios": "^1.5.1",
"body-parser": "^1.20.2",
Expand Down
8 changes: 4 additions & 4 deletions test/server.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,9 @@ describe('POST /feeds/:owner/:topic', () => {
const reader = bee.makeFeedReader('sequence', topic, writer.owner)
const dd1 = await reader.download()

expect(parseInt(dd1.feedIndex, 16)).toBeGreaterThanOrEqual(0)
expect(parseInt(dd1.feedIndex as string, 16)).toBeGreaterThanOrEqual(0)
expect(parseInt(dd1.feedIndexNext, 16)).toBeGreaterThanOrEqual(1)
expect(parseInt(dd1.feedIndex, 16) + 1).toEqual(parseInt(dd1.feedIndexNext, 16))
expect(parseInt(dd1.feedIndex as string, 16) + 1).toEqual(parseInt(dd1.feedIndexNext, 16))
}, 10000)
})

Expand All @@ -339,9 +339,9 @@ describe('GET /feeds/:owner/:topic', () => {
const reader = beeProxy.makeFeedReader('sequence', topic, writer.owner)
const dd1 = await reader.download()

expect(parseInt(dd1.feedIndex, 16)).toBeGreaterThanOrEqual(0)
expect(parseInt(dd1.feedIndex as string, 16)).toBeGreaterThanOrEqual(0)
expect(parseInt(dd1.feedIndexNext, 16)).toBeGreaterThanOrEqual(1)
expect(parseInt(dd1.feedIndex, 16) + 1).toEqual(parseInt(dd1.feedIndexNext, 16))
expect(parseInt(dd1.feedIndex as string, 16) + 1).toEqual(parseInt(dd1.feedIndexNext, 16))
}, 10000)
})

Expand Down

0 comments on commit 4965eb1

Please sign in to comment.