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

Add methods for exporting and importing backups #26

Merged
merged 5 commits into from
Jul 28, 2023

Commits on Jul 28, 2023

  1. Reset storage state before each test run

    The storage state is now reset before each test run to ensure test isolation and avoid interference between tests. This guarantees that each test starts with a clean state and avoids potential issues with shared data.
    modos189 committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    e6cfbfd View commit details
    Browse the repository at this point in the history
  2. Allow 'null' argument in storage's 'get' method to retrieve all data …

    …and add code comments"
    
    The 'get' method in the 'storage.js' mock now accepts 'null' as an argument, allowing the retrieval of all data stored in the object. Additionally, comprehensive code comments have been added to explain each function's purpose and behavior in the 'storage.js' file. This improves code readability and maintainability.
    modos189 committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    2a94923 View commit details
    Browse the repository at this point in the history
  3. Fix the storage.get method in tests to handle null argument

    Instead of returning a simple copy of the entire storage, it now correctly iterates over all keys in the store and applies the '_get_one' method to each key, returning an object with all the data.
    modos189 committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    994fd87 View commit details
    Browse the repository at this point in the history
  4. Add methods for exporting and importing backups

    In the 'Manager' class, the 'getBackupData' and 'setBackupData' methods have been added to handle the export and import of backups, respectively. These methods allow the user to retrieve backup data based on specified parameters and set backup data using the provided backup object.
    modos189 committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    0060a0a View commit details
    Browse the repository at this point in the history
  5. 1.7.0

    modos189 committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    d288ca7 View commit details
    Browse the repository at this point in the history