mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-03-27 01:04:19 +08:00
improving angular.copy spec
This commit is contained in:
@@ -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}]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user