File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1681,8 +1681,9 @@ describe('parser', function() {
1681
1681
1682
1682
beforeEach ( module ( function ( $provide ) {
1683
1683
$provide . decorator ( '$sniffer' , function ( $delegate ) {
1684
- $delegate . csp = cspEnabled ;
1685
- return $delegate ;
1684
+ expect ( $delegate . csp . noUnsafeEval === true ||
1685
+ $delegate . csp . noUnsafeEval === false ) . toEqual ( true ) ;
1686
+ $delegate . csp . noUnsafeEval = cspEnabled ;
1686
1687
} ) ;
1687
1688
} , provideLog ) ) ;
1688
1689
@@ -2120,9 +2121,8 @@ describe('parser', function() {
2120
2121
2121
2122
expect ( scope . $eval ( 'items[1] = "abc"' ) ) . toEqual ( "abc" ) ;
2122
2123
expect ( scope . $eval ( 'items[1]' ) ) . toEqual ( "abc" ) ;
2123
- // Dont know how to make this work....
2124
- // expect(scope.$eval('books[1] = "moby"')).toEqual("moby");
2125
- // expect(scope.$eval('books[1]')).toEqual("moby");
2124
+ expect ( scope . $eval ( 'books[1] = "moby"' ) ) . toEqual ( "moby" ) ;
2125
+ expect ( scope . $eval ( 'books[1]' ) ) . toEqual ( "moby" ) ;
2126
2126
} ) ;
2127
2127
2128
2128
it ( 'should evaluate grouped filters' , function ( ) {
You can’t perform that action at this time.
0 commit comments