Skip to content

Commit 152a451

Browse files
authored
feat: update to new batch effective utilization table (#588)
* feat: update to new batch effective utilization table * fix: adjust estimated capacity
1 parent ada12de commit 152a451

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.github/workflows/check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
CI: true
3838

3939
- name: Types check
40-
run: npm run types:check
40+
run: npm run check
4141

4242
- name: Build nodejs code
4343
run: npm run build

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"build": "rimraf dist && tsc",
2828
"test": "jest --config=jest.config.ts",
2929
"test:coverage": "jest --config=jest.config.ts --coverage",
30-
"types:check": "tsc --project tsconfig.test.json",
30+
"check": "tsc --project tsconfig.test.json",
3131
"start": "ts-node src/index.ts",
3232
"lint": "eslint --fix \"src/**/*.ts\" \"test/**/*.ts\" && prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
3333
"lint:check": "eslint \"src/**/*.ts\" \"test/**/*.ts\" && prettier --check \"src/**/*.ts\" \"test/**/*.ts\"",
@@ -62,7 +62,7 @@
6262
"typescript": "^4.8.4"
6363
},
6464
"dependencies": {
65-
"@ethersphere/bee-js": "^9.1.0",
65+
"@ethersphere/bee-js": "^9.2.0",
6666
"cafe-utility": "^27.14.0",
6767
"chalk": "^2.4.2",
6868
"cli-progress": "^3.11.2",

test/prompt/stamp-prompt.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ describeCommand('Postage stamp price estimation prompt', ({ consoleMessages }) =
77
jest.spyOn(inquirer, 'prompt').mockResolvedValueOnce({ value: 'n' })
88
await invokeTestCli(['stamp', 'buy', '--depth', '24', '--amount', '596046400'])
99
expect(consoleMessages[0]).toBe('Estimated cost: 0.9999999198822400 xBZZ')
10-
expect(consoleMessages[1]).toBe('Estimated capacity: 41.171 GB')
10+
expect(consoleMessages[1]).toBe('Estimated capacity: 40.084 GB')
1111
expect(consoleMessages[2]).toBe('Estimated TTL: 34 hours')
1212
expect(inquirer.prompt).toHaveBeenCalledWith({
1313
message: 'Confirm the purchase',

0 commit comments

Comments
 (0)