Adding a test in FilerJS for fs.promises.rename()
FilerJS: adding a simple test and reviewing a pull request: FilerJS is an open source Javascript library that acts as an adapter to allow you to interact with a web browser's IndexedDB or WebSQL APIs to make them behave like a Unix style filesystem. Filer itself mimics the function definitions of the fs module of Node.js (which actually modifies files on a server). While the concept of creating an entire library that essentially one big adapter is fascinating in terms of applying design patterns to functional Javascript programming, I currently have little idea how any of this works. In this case, the best approach to become acquainted with the Filer project was to look through the code and try to expand its unit tests. At the time of writing, I and y classmates were informed that Filer had recently had methods added to mimic Node's fs.promises tests, but no unit tests we added for these new functions. I started simple by creating an issue to add a test to check that ...