var inAttrsOrClasses = require('../lib/inAttrsOrClasses');

describe('inAttrsOrClasses()', function() {
  it('should identify if ng-view exsists in the attributes', function() {
    var attrs = [
      {nodeName: 'id', value:'#testVal'},
      {nodeName: 'width', value:'100px'},
      {nodeName: 'ng-view', value:''}];
    var res = inAttrsOrClasses(attrs);
    expect(res).toBe(true);
  });
  it('should identify if ng-view exsists in the class attribute', function() {
    var attrs = [
      {nodeName: 'id', value:'#testVal'},
      {nodeName: 'width', value:'100px'},
      {nodeName: 'class', value:'ng-view'}];
    var res = inAttrsOrClasses(attrs);
    expect(res).toBe(true);
  });
  it('should identify if ng-view does not exsist', function() {
    var attrs = [
      {nodeName: 'id', value:'#testVal'},
      {nodeName: 'width', value:'100px'},
      {nodeName: 'height', value:'auto'}];
    var res = inAttrsOrClasses(attrs);
    expect(res).toBe(undefined);
  });
});
@@ -124,33 +124,32 @@
 fy if ng-view ex
-s
 ists in the attr
@@ -420,17 +420,16 @@
 -view ex
-s
 ists in 
@@ -727,17 +727,16 @@
 s not ex
-s
 ist', fu

change occurances of exsists to exist, Closes #5