Commit Graph

76 Commits

Author SHA1 Message Date
Blade Barringer dabb6244e7 Merge pull request #5370 from gisikw/split-out-directives
Split out Angular directives
2015-06-09 07:42:12 -05:00
Blade Barringer 74112fd66d Test automatic refresh 2015-06-09 07:02:15 -05:00
Kevin Gisi 9cc4993fb3 Refactor focus-me spec to use an assertion 2015-06-08 23:21:55 -04:00
Kevin Gisi 8171209ab1 Add some directive specs 2015-06-08 10:02:45 -04:00
Kevin Gisi f95eaa736a Add first directive spec 2015-06-08 10:02:45 -04:00
Blade Barringer 8f744b043a Add gear owned to spec helper 2015-06-05 08:59:45 -05:00
Blade Barringer 865f7651a9 Merge branch 'TheHollidayInn-invite-friends-in-header' into develop 2015-06-04 08:54:04 -05:00
Blade Barringer 7a1c5835d0 Final adjustments to PR #5114
* Added test for header ctrl
* Made openModal function more readable
* Only show setting to disable invite friends if party is exactly 1 member big
* Use party.memberCount instead of party.members.length because it's more expressive
2015-06-04 08:48:05 -05:00
Blade Barringer 7a157fabb2 Finish tests for castEnd 2015-06-02 17:32:44 -05:00
Nick Tomlin 88e1ec690a Start tests for rootScope castEnd 2015-06-02 13:04:59 -05:00
Blade Barringer ca31b490e6 Add missing semicolons and s's 2015-06-02 08:43:10 -05:00
Blade Barringer 24c299783a Merge branch 'TheHollidayInn-markdown-for-spells' into develop 2015-06-02 07:58:29 -05:00
Blade Barringer b375c068de Refactor notification service and add tests 2015-06-02 07:51:54 -05:00
Blade Barringer 39f363ec29 Add tests for castEnd on root controller 2015-06-01 17:38:18 -05:00
Blade Barringer 6fb100874c Added mixpanel mock to make karma tests happy 2015-05-30 23:29:52 -05:00
Blade Barringer 8569f7b749 Merge branch 'joyclark-autocomplete-click-behavior' into develop 2015-05-08 08:45:06 -05:00
Blade Barringer efa193b262 Refactor test 2015-05-08 08:44:50 -05:00
Joy Clark 4450a5d7c3 Fixes #5094 Now show list based on whether or not a search query is defined. The autocomplete function from the directive is encapsulated so that it can be called and then the query can be set to null. 2015-05-03 18:14:28 +02:00
Negue c3b09d8cce test 2nd argument for openModal 2015-05-01 13:55:33 +02:00
Blade Barringer fbc1a9ae86 Add two unit tests for copyToDo PR 2015-04-30 08:53:14 -05:00
Blade Barringer 0d18738ceb Correct phrasing of test 2015-04-29 08:47:47 -05:00
Blade Barringer 78249122f7 Ignore casing when searching for user name in autocomplete 2015-04-29 08:21:13 -05:00
Blade Barringer 41763d3b78 Add missing semi-colons 2015-04-29 08:05:08 -05:00
Blade Barringer 3a12b5644c Remove out of date comments 2015-04-29 07:57:54 -05:00
Blade Barringer 6e35c45d5f Merge branch 'develop' of github.com:HabitRPG/habitrpg into joyclark-autocomplete_unit_tests 2015-04-29 07:50:33 -05:00
Joy Clark df1c349ea7 Fixing #5706 filtering system messages results in errors. 2015-04-27 23:01:15 +02:00
Joy Clark df91592438 fixing unit tests 2015-04-27 22:55:22 +02:00
Joy Clark 61c9d35215 Merge branch 'chat_match_users' into autocomplete_unit_tests 2015-04-27 22:50:30 +02:00
Joy Clark f181787e8b added some unit tests to test the autocomplete controller 2015-04-26 21:38:46 +02:00
Joy Clark f214428411 Improved filter function as described in #5085 and added unit tests. 2015-04-26 17:50:53 +02:00
Blade Barringer 2f4fc8fb88 Put isMemberOfGroup in its own describe block 2015-04-25 17:32:46 -05:00
Blade Barringer ce4535594c refactor joyclark's test 2015-04-25 17:31:40 -05:00
Joy Clark 913afc8f39 #5085 restructured unit tests for AutocompleteCtrl 2015-04-25 23:22:39 +02:00
Joy Clark 3458815f28 #5085 added some unit tests. 2015-04-25 23:08:28 +02:00
Kevin Gisi 65e42345f2 Ensure correct join/leave button for parties 2015-04-24 11:54:00 -04:00
Alys 7c36e49243 Merge pull request #5022 from gisikw/dated-tasks-correct-impl
Dated tasks correct impl
2015-04-22 16:56:03 +10:00
Blade Barringer 1d95784dde refactor isMemberOfGroup and tests 2015-04-16 07:58:35 -05:00
Blade Barringer 4853c0814d Corrected function 2015-04-16 07:39:55 -05:00
Blade Barringer 5ef4b7b395 Add tests for isMemberOf 2015-04-16 07:32:56 -05:00
Kevin Gisi b503a0fd64 Repaired task reordering issue
* Created `conditionalOrderBy` filter with a similar signature to `orderBy`,
  using a single conditional argument that when false, causes the filter to
  return the array unchanged

* Updated task view to use `conditionalOrderBy`

* Added karma specs for `conditionalOrderBy` filter
2015-04-13 08:51:08 -04:00
Blade Barringer f7d30dbc86 Remove only block on karma test 2015-04-11 00:01:39 -05:00
Blade Barringer 8642366f15 scroll to top and load hero; add tests for new behavior. 2015-04-10 23:51:34 -05:00
Blade Barringer 24ef3aa012 Made uuid in hall of heroes populate the input box 2015-04-09 21:57:06 -05:00
John Montgomery c2e2122efd Forgot to change part of the new tag test. 2015-03-30 22:37:26 -04:00
John Montgomery c22acb81a8 Updates new tag code and test spec for new tags. 2015-03-30 22:07:02 -04:00
Kevin Gisi 7bed1efb21 Revised Grunt translations task to use build:test
* Added build:test task to generate translation JS for tests.

* Removed test/spec/translations.js from the repository, added to .gitignore.

* Updated test/run_tests.sh to run build:test, and accept an optional argument
  to run a particular test suite.
2015-03-24 21:39:03 -04:00
Kevin Gisi 1e59336d09 Repair remaining Karma specs - all passing.
* Stubbed out User module to repair rootCtrlSpec

* Loaded RootCtrl in inventoryCtrlSpec, as it was missing shared functions.
  Updated mock user to include a mounts hash.
2015-03-24 21:39:03 -04:00
Kevin Gisi 2194caec15 Repaired groupServicesSpec, uncommented specs.
As it turns out, the page reload behavior was not caused by $resource, but
exists somewhere within the User module. Stubbed out the User module as as done
in notificationServicesSpec
2015-03-24 21:39:03 -04:00
Kevin Gisi 09b6401794 Add translations to Karma specs
* Added a task to Gruntfile to use website/src/i18n.js to generate a small JS file to be loaded in Karma env which sets window.env.translations to the i18n.translations['en'].

* Added new Grunt task to build:dev

* Updated Karma specs to reenable testing where possible, updating comments where not.
2015-03-24 21:39:03 -04: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