Renames all tests according to angularseed's style convention.

Refactors subsonic service's getStarred method to use angular $http and to limit results on the client side since we can't do it with Subsonic's API.

Adds a working unit test for this new method.
This commit is contained in:
Hyzual 2014-11-04 23:15:07 +01:00
parent fb8bf0ef24
commit 2c6276cced
8 changed files with 89 additions and 40 deletions

View file

@ -70,7 +70,7 @@ jamstash.service('utils', function ($rootScope, $cookieStore, globals) {
this.switchTheme = function (theme) {
switch (theme.toLowerCase()) {
case 'dark':
$('link[data-name=theme]').attr('href', 'style/Dark.css');
$('link[data-name=theme]').attr('href', 'styles/Dark.css');
break;
case 'default':
$('link[data-name=theme]').attr('href', '');