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

[WIP] Add unit tests to project #780

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Commits on Dec 25, 2018

  1. Add initial dependencies and tests required for testing

    We will use Intern as a testing framework because it seamlessly
    integrates with chai for running tests, as well as vast testing
    capabilities and onboard TypeScript support.
    
    The sample.js contains a simple test that should integrate with TravisCI
    and will be deleted when tests are implemented.
    curtisy1 committed Dec 25, 2018
    Configuration menu
    Copy the full SHA
    3d5e867 View commit details
    Browse the repository at this point in the history
  2. Fix test build

    Whoops, I forgot to add the object descriptor..
    curtisy1 committed Dec 25, 2018
    Configuration menu
    Copy the full SHA
    994edf5 View commit details
    Browse the repository at this point in the history

Commits on Jan 6, 2019

  1. Add basic test for utils.canUseFileStorage

    This completes the basic setup and makes it possible to:
    - run tests using the intern testrunner (npm test)
    - mock dependencies using testdouble
    Note: Electron can't be mocked by td itself, so providing a manual mock
    is needed. This should be modularized in the future.
    curtisy1 committed Jan 6, 2019
    Configuration menu
    Copy the full SHA
    0fa08e7 View commit details
    Browse the repository at this point in the history
  2. Merge changes from upstream

    curtisy1 committed Jan 6, 2019
    Configuration menu
    Copy the full SHA
    2c91a73 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bc089c1 View commit details
    Browse the repository at this point in the history