thewei / react-native-store

A simple database base on react-native AsyncStorage.
https://github.com/thewei/react-native-store
Other
569 stars 74 forks source link

Added modular unit tests using Jest #32

Closed pratyushmittal closed 8 years ago

pratyushmittal commented 8 years ago

I have migrated the previous test module to a more modular and recommended Jest test suite.

Running tests should be as easy as npm test now.

I would be happy to help in adding auto travis build tests. There were few performance improvements that I could think of while writing the tests, such as reducing write calls in update(filter) or reducing nested loops in few cases.

Please let me know if any help is needed in reviewing these commits.

thewei commented 8 years ago

Thank you very much. I will review the unit tests later.