'use strict';

describe('phoneDetailNew', function() {

  // Load the module that contains the `phoneDetail` component before each test
  beforeEach(module('phoneDetail'));

  // Test the controller
  describe('PhoneDetailControllerNew', function() {
    var $httpBackend, ctrl;
    var xyzPhoneData = {
      name: 'phone xyz',
      images: ['image/url1.png', 'image/url2.png']
    };

    beforeEach(inject(function($componentController, _$httpBackend_, $routeParams) {
      $httpBackend = _$httpBackend_;
      $httpBackend.expectGET('phones/xyz.json').respond(xyzPhoneData);

      $routeParams.phoneId = 'xyz';

      ctrl = $componentController('phoneDetailNew');
    }));

    it('should fetch the phone details', function() {
      jasmine.addCustomEqualityTester(angular.equals);

      expect(ctrl.phone).toEqual({});

      // $httpBackend.flush();
      // expect(ctrl.phone).toEqual(xyzPhoneData);
    });

  });

});

@@ -829,19 +829,16 @@
 ;%0A%0A     
- //
  $httpBa
@@ -857,19 +857,16 @@
 );%0A     
- //
  expect(

Add unit tests