Implements the first specs

TDD yeah !!!
This commit is contained in:
2016-02-12 14:01:33 +01:00
parent 0dd8219c4a
commit a9ca878be1
5 changed files with 123 additions and 49 deletions

View File

@@ -3,6 +3,7 @@ var services = angular.module('satbd.satellite.bar.services',[])
services.factory('albumService',['$http','$log','$q', function($http,$log,$q) {
function cleanupFields(album) {
album.serie = album.série;
album.série = undefined;
return album;
}
function get(id) {
@@ -16,7 +17,7 @@ services.factory('albumService',['$http','$log','$q', function($http,$log,$q) {
defer.reject('Search is not implemented');
return defer.promise;
}
return {
get: get,
search: search