[GH-ISSUE #30] const issue in storage.js #29

Closed
opened 2026-05-23 08:26:35 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @clibu on GitHub (May 8, 2021).
Original GitHub issue: https://github.com/appy-one/acebase/issues/30

Originally assigned to: @appy-one on GitHub.

eslint shows the following error (amongst others) in storage.js

  1476:29  error    'ret' is constant                                      no-const-assign

This also prevents vite -> esbuild from building.

Line 1473 needs to change from const ret to let ret

eslint shows quite a few errors across multiple source files.

I also noticed that there are no test scripts specified in any package.json and only one test file path-info.spec.js
Does AceBase have a comprehensive test suite? If not is this planned.

Originally created by @clibu on GitHub (May 8, 2021). Original GitHub issue: https://github.com/appy-one/acebase/issues/30 Originally assigned to: @appy-one on GitHub. eslint shows the following error _(amongst others)_ in ``storage.js`` ```` 1476:29 error 'ret' is constant no-const-assign ```` This also prevents vite -> esbuild from building. Line 1473 needs to change from ``const ret`` to ``let ret`` eslint shows quite a few errors across multiple source files. I also noticed that there are no test scripts specified in any package.json and only one test file ``path-info.spec.js`` Does AceBase have a comprehensive test suite? If not is this planned.
Author
Owner

@appy-one commented on GitHub (May 10, 2021):

Good catch. I've made quite a few changes to the code to enable clustering in nodejs environments, I've now also changed the line you referred to, hope to be able to commit them today. Regarding your test question - I have many test files locally that I run before publishing updates, but they are not suitable for automated testing atm

<!-- gh-comment-id:836472775 --> @appy-one commented on GitHub (May 10, 2021): Good catch. I've made quite a few changes to the code to enable clustering in nodejs environments, I've now also changed the line you referred to, hope to be able to commit them today. Regarding your test question - I have many test files locally that I run before publishing updates, but they are not suitable for automated testing atm
Author
Owner

@clibu commented on GitHub (May 13, 2021):

@appy-one Any progress on the new release yet, not that I'm in a hurry.

Re. the tests are you planning on automating and publishing them at some point?

<!-- gh-comment-id:840854979 --> @clibu commented on GitHub (May 13, 2021): @appy-one Any progress on the new release yet, not that I'm in a hurry. Re. the tests are you planning on automating and publishing them at some point?
Author
Owner

@appy-one commented on GitHub (May 19, 2021):

Fix published in v1.6.0. Don't know when I'll be working on automated tests

<!-- gh-comment-id:844454051 --> @appy-one commented on GitHub (May 19, 2021): Fix published in v1.6.0. Don't know when I'll be working on automated tests
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/acebase#29
No description provided.