Dfsad

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

To create instance

beforeEach(
inject(
function(
$injector
){
oService = $injector.get('Service');
}
)
)
To mock
beforeEach(
module(
funtion($provide){
$provide.value('insideFunction', { //object
thumURL = dfs;
})
}
)
)
$provide.value('service', jasmine.createSpyObj('service', ['technique']));
beforeEach(inject(function($rootScope){
rootScope = $rootScope;
scope = $rootScope.$new;}))
beforeEach(inject(function($controller){$controller('dfsdfsd,{$scope: scope})}))

You might also like