This commit is contained in:
John Reilly
2014-07-29 11:21:28 +01:00
parent 22894235a2
commit 68a3cb2875

View File

@@ -254,7 +254,7 @@ httpFoo.then((x) => {
function test_angular_forEach() {
var values: { [key: string]: string } = { name: 'misko', gender: 'male' };
var log = [];
angular.forEach(values, function (value, key) {
angular.forEach(values, function (value: string, key: string) {
this.push(key + ': ' + value);
}, log);
//expect(log).toEqual(['name: misko', 'gender: male']);