“use strict”;
describe(‘<%= name(true, true) %>’, function() {
var retriever, backend; var backendUrl = ''; var conf = { resources: { testResource: { route: backendUrl } } }; beforeEach(function() { module('arethusa.core'); module('<%= mod(true) %>'); inject(function($httpBackend, configurator, locator) { backend = $httpBackend; configurator.defineConfiguration(conf); retriever = configurator.getRetriever({ <%= name(true, true) %> : { resource: 'testResource' } }); locator.watchUrl(false); locator.set({}); }); }); describe('get', function() { it('...', function() { var response = {}; backend.when('GET', backendUrl).respond(response); // Your GET code goes here! backend.flush(); // Your first expectation goes here! }); });
});