text: /* global $controller, $httpBackend, $location, $rootScope, $state, routerHelper, mockData */
  describe("layout", function() {
      describe("sidebar", function() {
          var controller;
          var views = {
              dashboard: "app/dashboard/dashboard.html",
              customers: "app/customers/customers.html"
          };
  
          beforeEach(function() {
              module("app.layout", bard.fakeToastr);
              bard.inject(
                  "$controller",
                  "$httpBackend",
                  "$location",
                  "$rootScope",
                  "$state",
                  "routerHelper"
              );
          });
  
          beforeEach(function() {
              routerHelper.configureStates(mockData.getMockStates(), "/");
              controller = $controller("Sidebar");
              $rootScope.$apply();
          });
  
          bard.verifyNoOutstandingHttpRequests();
  
          it("should have isCurrent() for / to return `current`", function() {
              $location.path("/");
              expect(controller.isCurrent($state.current)).to.equal("current");
          });
  
          it("should have isCurrent() for /customers to return `current`", function() {
              $location.path("/customers");
              expect(controller.isCurrent($state.current)).to.equal("current");
          });
  
          it("should have isCurrent() for non route not return `current`", function() {
              $location.path("/invalid");
              expect(controller.isCurrent({title: "invalid"})).not.to.equal("current");
          });
      });
  });
  