diff options
Diffstat (limited to 'test/AngularSpec.js')
| -rw-r--r-- | test/AngularSpec.js | 23 | 
1 files changed, 23 insertions, 0 deletions
| diff --git a/test/AngularSpec.js b/test/AngularSpec.js index 0ff0508f..2d469698 100644 --- a/test/AngularSpec.js +++ b/test/AngularSpec.js @@ -75,6 +75,22 @@ describe('angular', function() {      });    }); +  describe('shallow copy', function() { +    it('should make a copy', function() { +      var original = {key:{}}; +      var copy = shallowCopy(original); +      expect(copy).toEqual(original); +      expect(copy.key).toBe(original.key); +    }); +  }); + +  describe('elementHTML', function() { +    it('should dump element', function() { +      expect(lowercase(startingTag('<div attr="123">something<span></span></div>'))). +        toEqual('<div attr="123">'); +    }); +  }); +    describe('equals', function() {      it('should return true if same object', function() {        var o = {}; @@ -501,4 +517,11 @@ describe('angular', function() {        dealoc(element);      });    }); + + +  describe('startingElementHtml', function(){ +    it('should show starting element tag only', function(){ +      expect(startingTag('<ng:abc x="2"><div>text</div></ng:abc>')).toEqual('<ng:abc x="2">'); +    }); +  });  }); | 
