
// N E T W O R K    S E R V I C E

describe('NetworkService Unit Tests', function(){
  beforeEach(module('starter.services'));

  beforeEach(inject(function (_$rootScope_, _NetworkService_) {
    NetworkService = _NetworkService_;
    $rootScope = _$rootScope_;

    localStorage.removeItem('networkStatus');
  }));

  it('should set localStorage["networkStatus"] to offline', function(){
    NetworkService.networkEvent('offline');
    expect(localStorage['networkStatus']).toBe("offline");
  });


  it('should set localStorage["networkStatus"] to online and not sync', function(){
    localStorage.setItem('networkStatus', 'online');
    NetworkService.networkEvent('online');
    expect(localStorage['networkStatus']).toBe("online");
  });

});
@@ -442,33 +442,41 @@
 ect(localStorage
-%5B
+.getItem(
 'networkStatus'%5D
@@ -466,33 +466,33 @@
 ('networkStatus'
-%5D
+)
 ).toBe(%22offline%22
@@ -705,17 +705,25 @@
 lStorage
-%5B
+.getItem(
 'network
@@ -729,17 +729,17 @@
 kStatus'
-%5D
+)
 ).toBe(%22

Move to got notation following JS hinting