Skip to content

Commit 7278762

Browse files
committed
fix($parse): fixup: follow code style
1 parent 4b8bbf8 commit 7278762

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/ng/parseSpec.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -3872,20 +3872,19 @@ describe('parser', function() {
38723872
it('should watch ES6 object computed property changes', function() {
38733873
var count = 0;
38743874
var values = [];
3875-
var firstValue = {'undefined': true};
38763875

3877-
scope.$watch('{[a]: true}', function(val, oldVal) {
3876+
scope.$watch('{[a]: true}', function(val) {
38783877
count++;
38793878
values.push(val);
38803879
}, true);
38813880

38823881
scope.$digest();
38833882
expect(count).toBe(1);
3884-
expect(values[0]).toEqual(firstValue);
3883+
expect(values[0]).toEqual({'undefined': true});
38853884

38863885
scope.$digest();
38873886
expect(count).toBe(1);
3888-
expect(values[0]).toEqual(firstValue);
3887+
expect(values[0]).toEqual({'undefined': true});
38893888

38903889
scope.a = true;
38913890
scope.$digest();

0 commit comments

Comments
 (0)