This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 57
57
"gulp-sourcemaps" : " ^1.2.2" ,
58
58
"gulp-uglify" : " ^1.0.1" ,
59
59
"gulp-util" : " ^3.0.1" ,
60
- "jasmine-core" : " 2.5.2 " ,
60
+ "jasmine-core" : " ^2.8.0 " ,
61
61
"jasmine-node" : " ^2.0.0" ,
62
62
"jasmine-reporters" : " ^2.2.0" ,
63
63
"jquery" : " ^3.2.1" ,
Original file line number Diff line number Diff line change @@ -1035,10 +1035,13 @@ describe('angular', function() {
1035
1035
1036
1036
}
1037
1037
1038
- var originalFunction ;
1038
+ var originalPrototype = window . Function . prototype ;
1039
1039
1040
1040
beforeEach ( function ( ) {
1041
1041
spyOn ( window , 'Function' ) ;
1042
+ // Jasmine 2.7+ doesn't support spying on Function, so we have restore the prototype
1043
+ // as Jasmine will use Function internally
1044
+ window . Function . prototype = originalPrototype ;
1042
1045
} ) ;
1043
1046
1044
1047
afterEach ( function ( ) {
Original file line number Diff line number Diff line change @@ -3489,7 +3489,11 @@ jade@0.26.3:
3489
3489
commander "0.6.1"
3490
3490
mkdirp "0.3.0"
3491
3491
3492
- jasmine-core@2.5.2, jasmine-core@~2.5.2 :
3492
+ jasmine-core@^2.8.0 :
3493
+ version "2.8.0"
3494
+ resolved "https://registry.yarnpkg.com/jasmine-core/-/jasmine-core-2.8.0.tgz#bcc979ae1f9fd05701e45e52e65d3a5d63f1a24e"
3495
+
3496
+ jasmine-core@~2.5.2 :
3493
3497
version "2.5.2"
3494
3498
resolved "https://registry.yarnpkg.com/jasmine-core/-/jasmine-core-2.5.2.tgz#6f61bd79061e27f43e6f9355e44b3c6cab6ff297"
3495
3499
You can’t perform that action at this time.
0 commit comments