Commit Graph

959 Commits

Author SHA1 Message Date
Matteo Pagliazzi 2a51117d21 comment errors according to apidoc, add new tests and fix existing ones 2015-11-17 19:22:47 +01:00
Matteo Pagliazzi aa1b046cf2 add example apidoc comments, add notFound middleware 2015-11-17 16:48:50 +01:00
Blade Barringer dcca17fa4e Set up i18n in unit test helper. 2015-11-16 08:12:45 -06:00
Blade Barringer 9ec39a597e Set up i18n in test helpers 2015-11-16 08:07:28 -06:00
Blade Barringer 4ab2fafc5e Remove coffee files 2015-11-15 15:45:56 -06:00
Blade Barringer 6ba9027252 Switch out babel for babel-core 2015-11-15 15:15:52 -06:00
Blade Barringer 49fd6b9f5c Merge branch 'api-v3' of github.com:HabitRPG/habitrpg into api-v3 2015-11-15 14:59:57 -06:00
Blade Barringer 00055ad055 Merge branch 'develop' into api-v3 2015-11-15 14:57:41 -06:00
Matteo Pagliazzi 83eb2308fb Merge pull request #6232 from HabitRPG/api-v3-utils
[API v3] Port Utils
2015-11-15 20:01:48 +01:00
Matteo Pagliazzi 78e5d913f5 update test to match possible html string 2015-11-15 17:27:22 +01:00
Blade Barringer a127bb8711 Switch to babel-core form babel.
Babel includes the CLI, which we don't need.
2015-11-15 08:59:57 -06:00
Blade Barringer 037337d54f Remove extraneous anonymous function. 2015-11-15 08:24:42 -06:00
Blade Barringer 5be9b88cc6 Add babel compiler to mocha.opts 2015-11-15 08:24:19 -06:00
Blade Barringer da881153b9 Convert coffee tests to js 2015-11-15 08:19:41 -06:00
Blade Barringer c829eb21ed Removed unused mocha.opts 2015-11-14 21:50:47 -06:00
Blade Barringer bc90893284 Correct test to declare variable 2015-11-14 21:45:20 -06:00
Blade Barringer ff929b669d Convert common tests to js 2015-11-14 21:44:10 -06:00
Matteo Pagliazzi a80be380f9 add txt emails tests 2015-11-14 18:58:33 +01:00
Matteo Pagliazzi a8b3780cc0 add send email tests 2015-11-14 18:13:17 +01:00
Matteo Pagliazzi 3b75fe6ade add tests for emails (wip) and encryption, misc fixes 2015-11-14 17:43:56 +01:00
Matteo Pagliazzi b315d10c79 migrate utils to v3, uprade nodemailer 2015-11-14 17:43:56 +01:00
Matteo Pagliazzi 466797cc6c add some basic tests 2015-11-14 15:50:57 +01:00
Blade Barringer 4cd4c588a8 Add tests for browser selection of language and refactor 2015-11-13 18:22:20 -06:00
Blade Barringer 43058f1642 Add queries for which req pieces take precedence. 2015-11-13 18:22:17 -06:00
Blade Barringer 500c520c59 Move sandbox stub to test that uses it 2015-11-13 18:22:16 -06:00
Matteo Pagliazzi 0daa63c2ca Merge branch 'api-v3' into api-v3-i18n 2015-11-13 19:38:31 +01:00
Matteo Pagliazzi e84e3e1352 fix another require path 2015-11-13 18:06:50 +01:00
Blade Barringer 49a6a7167b Merge branch 'api-v3' into api-v3-i18n 2015-11-13 10:49:21 -06:00
Blade Barringer c6f059c1df Move delete cacth to afterEach 2015-11-13 10:40:31 -06:00
Blade Barringer 6bb107f9e0 Set up analytics middleware to test prod and non prod behavior. 2015-11-13 10:35:58 -06:00
Blade Barringer 810a818334 Add headers to req generator and unpend failing test. 2015-11-13 09:36:18 -06:00
Blade Barringer a6a9c3c74f Use context blocks instead of describe blocks. 2015-11-13 09:27:17 -06:00
Blade Barringer db67451a38 Add done callback to test. 2015-11-13 09:24:03 -06:00
Blade Barringer 939bc893c6 Correct test to check req status after function is finished. 2015-11-13 09:21:22 -06:00
Blade Barringer eab9d7b3ba Reorganize i18n tests. 2015-11-13 09:15:11 -06:00
Blade Barringer be672e570c Merge branch 'api-v3' into api-v3-i18n 2015-11-13 07:44:48 -06:00
Blade Barringer 6e8e1648d9 Merge branch 'develop' into api-v3 2015-11-13 07:38:24 -06:00
Matteo Pagliazzi de21b72027 move old i18n version to api-v2 folder and use new i18n where possible 2015-11-12 16:43:02 +01:00
Matteo Pagliazzi 60b51b8862 Merge branch 'api-v3' into api-v3-i18n 2015-11-12 16:36:19 +01:00
Matteo Pagliazzi 4af8a8f7aa add tests for i18n and getUserLanguage 2015-11-12 16:24:08 +01:00
Blade Barringer a18c2f7444 Port v2 webhook lib to v3 2015-11-12 09:03:28 -06:00
Blade Barringer 9a3e4c8f8b Move old analytics lib to v2 directory. 2015-11-12 07:51:51 -06:00
Blade Barringer 7559f14f4d Remove coffee from files 2015-11-11 20:40:26 -06:00
Blade Barringer 3a13a5ee2c Remove unneeded coffeescript requires in tests. 2015-11-11 20:32:17 -06:00
Blade Barringer 533440ce55 Merge pull request #6214 from HabitRPG/api-v3-add-password-tests
Add tests for password utilities
2015-11-11 19:43:50 -06:00
Blade Barringer c5445dc426 Merge branch 'develop' into api-v3 2015-11-11 19:42:39 -06:00
Blade Barringer 6acd6460ea Merge pull request #6218 from crookedneighbor/increase_code_coverage_for_clearflags_route
Increase code coverage for clearflags route
2015-11-11 18:49:37 -06:00
Blade Barringer 13da95b552 Add tests for clearflags route 2015-11-11 17:58:41 -06:00
Sabe Jones 06a5a1cb95 Merge pull request #6042 from HabitRPG/sabrecat/more-modals
More and better modals; Social Media sharing
2015-11-11 17:32:43 -06:00
Blade Barringer cdb05e1b42 Add analytics service to v3 2015-11-11 17:30:36 -06:00