Implements the first specs
TDD yeah !!!
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user