Skip to content

Commit

Permalink
Merge pull request #37 from jakemmarsh/update-tests
Browse files Browse the repository at this point in the history
Relocate & update tests
  • Loading branch information
jakemmarsh committed May 12, 2016
2 parents 79de4e2 + ae47b41 commit 9f757c5
Show file tree
Hide file tree
Showing 30 changed files with 517 additions and 501 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ Along with many Gulp libraries (these can be seen in either `package.json`, or a

1. If you haven't already, follow steps 1 & 2 above
2. If you haven't already run `gulp dev` or `gulp prod` at least once, run `gulp prod`
3. Run all tests in the `__tests__/` directory with the `gulp test` command
3. Run all tests in the `tests/` directory with the `gulp test` command
* A single file can be run by specifing an `-f` flag: `gulp test -f <PATH_TO_TEST_FILE>`
* In the `PATH_TO_TEST_FILE`, it is possible to omit the `__tests__/` prefix, as well as the `.test.js` suffix. They will be automatically added if not detected.
* In the `PATH_TO_TEST_FILE`, it is possible to omit the `tests/` prefix, as well as the `.test.js` suffix. They will be automatically added if not detected.

##### Code coverage

When running tests, code coverage will be automatically calculated and output to an HTML file using the [Istanbul](https://github.com/gotwarlost/istanbul) library. These files can be seen in the generated `__coverage__/` directory.
When running tests, code coverage will be automatically calculated and output to an HTML file using the [Istanbul](https://github.com/gotwarlost/istanbul) library. These files can be seen in the generated `coverage/` directory.

---

Expand Down
59 changes: 0 additions & 59 deletions __tests__/App.test.js

This file was deleted.

18 changes: 0 additions & 18 deletions __tests__/components/Footer.test.js

This file was deleted.

18 changes: 0 additions & 18 deletions __tests__/components/Header.test.js

This file was deleted.

31 changes: 0 additions & 31 deletions __tests__/pages/HomePage.test.js

This file was deleted.

31 changes: 0 additions & 31 deletions __tests__/pages/NotFoundPage.test.js

This file was deleted.

52 changes: 0 additions & 52 deletions __tests__/pages/SearchPage.test.js

This file was deleted.

47 changes: 0 additions & 47 deletions __tests__/stores/CurrentUserStore.test.js

This file was deleted.

72 changes: 0 additions & 72 deletions __tests__/utils/APIUtils.test.js

This file was deleted.

Loading

0 comments on commit 9f757c5

Please sign in to comment.