Commit Graph

20 Commits

Author SHA1 Message Date
Keith Holliday
ea490c9a1f Ported groups service to user new api v3 and ported dependent controllers (#7108)
* Ported groups service to user new api v3 and ported dependent controllers

* Remove  and extra remove inviation code. Fixed group service caching and update group service tests

* Fixed test logic and added party cache support

* Added promise rejections and updated http interceptor
2016-04-25 23:11:23 +02:00
Blade Barringer
d53ac4c66f tests: Add ability to use ES2015 in karma tests 2015-12-28 08:24:23 -06:00
Blade Barringer
53133c6439 Adjust newUser spec helper 2015-08-14 23:55:36 -05:00
Blade Barringer
c10a0ad31a Add habits 2015-08-14 23:43:32 -05:00
Blade Barringer
32ebc8734e Set default prize for challenge at 0 2015-07-24 17:30:44 -05:00
Blade Barringer
f9cc9a87ee Add challenge factory to karma specs 2015-07-24 17:30:44 -05:00
Blade Barringer
4ea5e0c71a Update newGroup spec helper 2015-07-24 14:03:44 -05:00
Blade Barringer
f6bc929ddd Refacor how spec factory overrides works 2015-07-24 11:38:52 -05:00
Sabe Jones
0955d63998 test(quests): Fix tests 2015-07-14 11:46:13 -05:00
Blade Barringer
10c709a9f2 Merge branch 'develop' into TheHollidayInn-challenges-clone 2015-06-21 20:05:20 -05:00
Blade Barringer
b4c4b891a1 Moved sandbox.js to mocks directory 2015-06-21 20:02:48 -05:00
Blade Barringer
38e24571da Merge branch 'develop' into TheHollidayInn-challenges-clone
Take specHelper off of global scope
2015-06-21 18:59:11 -05:00
Blade Barringer
944cef4d44 Switch over to using sinon.sandbox in karma specs 2015-06-20 14:48:38 -05:00
Blade Barringer
86f18e9a5a Refactor clone challenges PR 2015-06-19 20:49:24 -05:00
Blade Barringer
8f744b043a Add gear owned to spec helper 2015-06-05 08:59:45 -05:00
Blade Barringer
5ef4b7b395 Add tests for isMemberOf 2015-04-16 07:32:56 -05:00
Sean Zellmer
4bc4e836e4 Make karma tests pass.
This pends a lot of tests that are failing due to translations not being loaded in the environment, as well as some issues with the page reload in groupServicesSpec.

We removed the module declarations for habitrpg in each spec since that
has been moved to specHelper.
2015-03-07 15:48:23 -06:00
Nick Tomlin
e7f65f219a WIP - Fix karma config file order to successfully boostrap app
There were a few issues here:

1. Relying on globs meant that modules were loaded out of order. So
'habitrpgc' was undefined when we were trying to add services etc to it.
The short term solution is to list them in the same way we list them in manifest
json. The long term would be switching everything to browserify so as to
avoid ordering/listing nightmare by having a single bundle.
2. We were missing exeternal deps (like 'hello') so the tests were
breaking before they even started. Some of them still are
3. We were including services that don't seem to exist anymore  (e.g. `habitrpgstatic`). We still are in certain places
2015-03-05 12:12:32 -06:00
Dušan Juretić
efdd85fe2e Using newUser helper in tests 2014-01-18 20:42:28 -03:00
Dušan Juretić
bca13b5557 First root controller test 2014-01-18 20:42:28 -03:00