Joined February 2018
·

ldmarz

Agence
·
Santiago, chile
·
·
·

const module = angular.mock.module;
const inject = angular.mock.inject;
let searchService;

  describe('Testing some awesome service', () => {
    beforeAll(module('yourModule'));

   beforeEach(inject($injector => {
     searchService = $injector.get('SearchClass');
   }));

  it('Should be defined', () => {
    expect(searchService).toBeDefined();
  });
)}
Achievements
1 Karma
0 Total ProTip Views
Interests & Skills