In the following test example, the providerโs original name is APIEndpointProvider, but for the introduction of injections and maintenance, the agreement seems to be entered with underscores wrapping it. Why is this?
'use strict'; describe('Provider: APIEndpointProvider', function () { beforeEach(module('myApp.providers')); var APIEndpointProvider; beforeEach(inject(function(_APIEndpointProvider_) { APIEndpointProvider = _APIEndpointProvider_; })); it('should do something', function () { expect(!!APIEndpointProvider).toBe(true); }); });
What are the agreements? Am I missing a better explanation?
angularjs angularjs-service unit-testing jasmine
Kenneth Lynne Mar 10 '13 at 2:00 2013-03-10 02:00
source share