diff options
| author | Misko Hevery | 2010-05-07 12:09:14 -0700 | 
|---|---|---|
| committer | Misko Hevery | 2010-05-07 12:09:14 -0700 | 
| commit | 038a743e6f49c347a38edc0e54dcbb175905a475 (patch) | |
| tree | 8eb10232c94967159175bde5a9209aaf5ba07c67 /test/AngularSpec.js | |
| parent | ac1d02d0658cb74ae3822e364f84809d78cda335 (diff) | |
| download | angular.js-038a743e6f49c347a38edc0e54dcbb175905a475.tar.bz2 | |
xhr bulk fixes
Diffstat (limited to 'test/AngularSpec.js')
| -rw-r--r-- | test/AngularSpec.js | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/test/AngularSpec.js b/test/AngularSpec.js index 60079c47..de724f03 100644 --- a/test/AngularSpec.js +++ b/test/AngularSpec.js @@ -41,4 +41,12 @@ describe("copy", function(){      assertEquals(src.a, dst.a);      assertNotSame(src.a, dst.a);    }); + +  it("should copy primitives", function(){ +    expect(copy(null)).toEqual(null); +    expect(copy('')).toEqual(''); +    expect(copy(123)).toEqual(123); +    expect(copy([{key:null}])).toEqual([{key:null}]); +  }); +  }); | 
