This commit is contained in:
John Reilly
2014-07-29 11:26:06 +01:00
parent 68a3cb2875
commit 86d681f289

View File

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