Commit Graph

50 Commits

Author SHA1 Message Date
Matteo Pagliazzi
85fb5f33aa fix test lint 2019-10-08 20:45:38 +02:00
Matteo Pagliazzi
3a6a4092f9 fix content tests 2019-10-03 16:35:56 +02:00
Sabe Jones
060e68ef95 fix(tests): content coverage for wacky pots 2019-04-09 15:20:25 -05:00
Raymond Grumney
0b352b9103 Unit Tests; 1 fix to appFooter debug menu (#10894)
* Built

* Update .editorconfig

* Fixed filename ('translaotr.js' => 'translator.js')

* Fixed Filename

* User Unit Tests

* Writing tests for avatar.vue

* writing tests for getters/user.js

* Writing Tests for avatar.vue

* Writing Tests for avatar.vue

* writing tests for store/getters/user.js

* renamed file

* Integrated test into user.test.js

* Reverting

* Fetching most recent version

* +1 Level now adds a level

* updating to current version

* Minor edits to pass lint test

* Removing non-functional Tests

* Cleaning up
2018-12-23 19:45:59 +01:00
Matteo Pagliazzi
939712ad1f api: add pagination for guilds
start adding apiMessages

add apiMessages lib with tests

use apiMessage and fix tests

fix content tests

guilds pagination: add api docs

guilds pagination: improve api docs
2017-03-13 19:46:53 +01:00
Matteo Pagliazzi
98c019a0b6 Upgrade lodash to v4 and lint more files (#8495)
* common: import lodash modules separately

* remove test/content from .eslintignore, fix with eslint --fix content/index

* lint test/content

* lint content/index except for lodash methods

* upgrade server/models

* upgrade server/middlewares and server/libs

* port server/controllers/top-level

* port server/controllers/api-v3

* port views and tests

* client old port lodash and _(, missing _.

* upgrade client-old

* port common/script (root level files only)

* port common/script/fns

* port common/libs

* port common/script/ops

* port common/script/content and common/script/libs/shops.js

* misc fixes

* misc fixes

* misc fixes

* more tests fixes

* fix payments test stubbing, down to 2 failing tests

* remove more instances of lodash wrapping

* fix bug where toObject does not clone object

* fix tests

* upgrade migration or add lodash 4 note

* update shrinkwrap

* fix linting

* upgrade eslint-config-habitrpg

* update shrinkwrap

* recompile shrinkwrap
2017-03-01 17:10:48 +01:00
Travis
fa788f49fc Preventing users from buying already gifted subscriber items (#7734)
* Adding the unopened mystery items to the call to get not obtained subscriber items. closes #7712

* refactoring according to pr

* Refactoring according to pr. moved time-travelers to it's own file and added new tests.
2016-12-15 10:00:49 -06:00
Blade Barringer
81b7eeeb71 Common reorg (#8025)
* Re-organize common folder

* fix: Correct paths in tests

* fix: move new content to proper folder

* chore: Move audio folder to assets

* Move sprites to sprites assets directory

* Move css sprites to assets directory

* Split out readmes for common code and sprites

* Move images to assets directory

* Move destinatin of shared browserified file

* remove unused file

* move compiled js to client-old

* Fix karma tests

* fix: Correct paths for sprites
2016-09-16 17:18:07 +02:00
Blade Barringer
bf3387703d Pull out animal content into separate files (#7989)
* Pull out animal content into separate files

* Correct variable names

* Add tests for stable, eggs, and hatching potions content

* Add content test back into npm test
2016-09-10 13:37:10 -05:00
Blade Barringer
c7310b97ec Revert "Revert inventory equipment/gear sorting due to inability to de/equip and maybe performance issues."
This reverts commit 9d50201180.
2016-03-17 08:09:18 -05:00
Alys
9d50201180 Revert inventory equipment/gear sorting due to inability to de/equip and maybe performance issues.
This reverts commits 1c811dbc82, 146810a3e9, 9508ed45df, a6fb945120.
2016-03-17 21:47:29 +10:00
Blade Barringer
146810a3e9 feat: Add set property to content 2016-03-15 19:41:19 -05:00
Blade Barringer
c96ddaeebe refactor: Remove unused common script src files 2016-03-01 08:49:25 -06:00
Blade Barringer
773bb23b88 chore(dependency): Remove unneeded lodash submodules 2015-12-29 07:45:13 -06:00
Nathan Maton
35a921bf43 feat(content): Make mystery set strings translatable
Squashed and cleaned up version of
https://github.com/HabitRPG/habitrpg/pull/6367
2015-12-15 08:47:13 -06:00
Blade Barringer
f58b3eee64 Move special gear into own subdirectory 2015-11-17 17:06:00 -06:00
Blade Barringer
195b39561b Move contributor gear to own module 2015-11-17 09:01:38 -06:00
Blade Barringer
2bac9c3c17 Separate out backer gear into own module 2015-11-17 08:17:40 -06:00
Blade Barringer
639dfb31d7 Pull out gear into separate modules 2015-11-16 17:29:13 -06:00
Blade Barringer
ea87910c2f Correct test path 2015-11-15 12:34:40 -06:00
Blade Barringer
ea14326025 Adjust faq test 2015-11-15 10:18:10 -06:00
Blade Barringer
9a14368170 Correct test commands 2015-10-17 12:22:04 -05:00
Blade Barringer
62b15c4f48 Simplify background tests 2015-10-03 11:54:58 -05:00
Blade Barringer
cc579b97a3 Increase converage around egg content 2015-10-03 11:42:23 -05:00
Blade Barringer
04d3bf0f19 Refactor faq tests 2015-10-03 11:19:27 -05:00
Blade Barringer
b82123e1a2 Update food tests 2015-10-03 11:11:16 -05:00
Blade Barringer
7e080d5423 Expand hatching potions test 2015-10-03 11:08:03 -05:00
Blade Barringer
95a17f6fbb Expand user defaults test 2015-10-03 11:04:04 -05:00
Blade Barringer
4b46a0e9fc Convert other globals to exported functions 2015-10-03 10:48:42 -05:00
Blade Barringer
8987645725 Export constants instead of putting them on global scope 2015-10-03 10:26:10 -05:00
Blade Barringer
3f6be30ebc Simplify spell tests and test more attributes 2015-10-03 10:21:52 -05:00
Blade Barringer
6fdfe6c3bf Correct spelling of canBuy 2015-10-03 09:59:40 -05:00
Blade Barringer
a492649f71 Simplify gear tests and test more items 2015-10-03 09:59:10 -05:00
Blade Barringer
8eadecdc1a Improve testing around armor 2015-10-03 09:34:56 -05:00
Blade Barringer
495a3d3125 Add additional tests for quests 2015-10-03 09:21:06 -05:00
Blade Barringer
b4ce683190 Correct tests 2015-10-01 21:56:14 -05:00
Blade Barringer
228b8e030e Remove only form test 2015-09-29 17:20:15 -05:00
Blade Barringer
152cb99750 Add spell tests 2015-09-29 12:58:53 -05:00
Blade Barringer
9de2ee473d Correct gear test 2015-09-29 12:54:45 -05:00
Blade Barringer
26d73d0bc1 Create user default test 2015-09-29 12:53:39 -05:00
Blade Barringer
61589ca262 Add armoire and potion locale tests 2015-09-29 12:44:35 -05:00
Blade Barringer
c846cfd653 Add background content test 2015-09-29 12:38:34 -05:00
Blade Barringer
0fc41abe25 Add FAQ content test 2015-09-29 12:33:55 -05:00
Blade Barringer
cc0eb7d672 Add gear content test 2015-09-29 09:00:27 -05:00
Blade Barringer
400f82b2d5 Add food content test 2015-09-29 08:12:10 -05:00
Blade Barringer
0af658dab7 Add hatching potions test 2015-09-29 08:09:43 -05:00
Blade Barringer
54e910d67a Add egg content test 2015-09-29 08:07:07 -05:00
Blade Barringer
e27751c1be Organize quest tests by key 2015-09-29 08:06:48 -05:00
Blade Barringer
f6aa316eb1 Create quest content test 2015-09-29 07:55:35 -05:00
Blade Barringer
1b9c7c51c2 Set up content tests 2015-09-29 07:55:13 -05:00