mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
improving angular.copy spec
This commit is contained in:
parent
54090d7766
commit
f24ec0c8f7
1 changed files with 2 additions and 1 deletions
|
|
@ -55,7 +55,8 @@ describe("copy", function(){
|
|||
|
||||
it("should copy primitives", function(){
|
||||
expect(copy(null)).toEqual(null);
|
||||
expect(copy('')).toEqual('');
|
||||
expect(copy('')).toBe('');
|
||||
expect(copy('lala')).toBe('lala');
|
||||
expect(copy(123)).toEqual(123);
|
||||
expect(copy([{key:null}])).toEqual([{key:null}]);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue