src/app/core/resources/location/location.mock.js
/**
* @author Martin Micunda {@link http://martinmicunda.com}
* @copyright Copyright (c) 2015, Martin Micunda
* @license GPL-3.0
*/
'use strict';
import location from './fixtures/location_1.json!json';
import locations from './fixtures/locations.json!json';
import AbstractResourceMock from '../abstract-resource-mock';
import {Run, Inject} from '../../../ng-decorators'; // jshint unused: false
class LocationResourceMock extends AbstractResourceMock {
//start-non-standard
@Run()
@Inject('$httpBackend', 'localStorageService')
//end-non-standard
runFactory($httpBackend, localStorageService){
super.init($httpBackend, localStorageService, 'locations', location, locations, 'name');
}
}