Angular Unit Test 21 断言总结 // toEqual var arr1 = [1,2]; var arr2 = [1,2]; //expect(arr1).toBe(arr2); 结果false--toBe表示=== expect(arr1).toEqual(arr2); //true // toMatch(Regex or string)正则断言 var value3 = 'I am using Angular Unit Test';