Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement/new tests #4

Merged
merged 9 commits into from
Jun 12, 2017
Merged

Improvement/new tests #4

merged 9 commits into from
Jun 12, 2017

Conversation

marcusjwhelan
Copy link
Collaborator

Change Log:

  • Testing platform upgrade.
  • Mock nodejs storage driver. will replace with jest mock fs later
  • Tests written for all pieces of datastore except
    • Update
    • Cursor
  • Cursor/find and update need fixing up to finally be a complete module.
  • version 0.0.2

team. Starting the test structure for testing the datastore and all
of its methods. Start of setup for the mock database and mock storage
driver. Added a fixture db to be used as an initial load to the db file
which will be cleared after every test, and a usersIndex file for storing
the index of the database
keys/iterate/storeIndex/fetchIndex. Need to write a method for fetching
all indexed fields JSON to store. Added transpilation of binary-type-tree
during tests since BTT is an es6 module. Added play datastore for testing.
updated jest and added Node dev dependency for node storage driver tests.
…index

are now implemented on the mock storage driver. Switch out fs library
for a mock fs library from jest later. clear now clears all files
associated with filepath including all indexed json files. new getPath
method that can return 0/null/undefined.
works. Find methods on datastore do not work. cursor does not work
Update does not work. These are the final pieces.
Need a new branch to create an Update and add tests for it.
Need a new branch to create an Update and add tests for it.

Need to make sure version 0.0.1 can be found compared to 0.0.2
@marcusjwhelan marcusjwhelan merged commit bf32faf into master Jun 12, 2017
@marcusjwhelan marcusjwhelan deleted the improvement/newTests branch June 12, 2017 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant