File tree Expand file tree Collapse file tree 1 file changed +9
-12
lines changed
packages/mongodb-constants/src Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -46,18 +46,15 @@ describe('stage operators', function () {
46
46
it ( `${ operator . name } has a properly formatted snippet` , function ( ) {
47
47
const snippet = replacePlaceholders ( operator . snippet ) ;
48
48
49
- expect (
50
- ( ) => {
51
- // acorn can't parse snippets that only contain comments
52
- const snippetWithoutComments = uncomment ( snippet ) ;
53
- if ( snippetWithoutComments . trim ( ) ) {
54
- acorn . parseExpressionAt ( snippetWithoutComments , 0 , {
55
- ecmaVersion : 'latest' ,
56
- } ) ;
57
- }
58
- } ,
59
- 'expected snippet to parse'
60
- ) . not . to . throw ( ) ;
49
+ expect ( ( ) => {
50
+ // acorn can't parse snippets that only contain comments
51
+ const snippetWithoutComments = uncomment ( snippet ) ;
52
+ if ( snippetWithoutComments . trim ( ) ) {
53
+ acorn . parseExpressionAt ( snippetWithoutComments , 0 , {
54
+ ecmaVersion : 'latest' ,
55
+ } ) ;
56
+ }
57
+ } , 'expected snippet to parse' ) . not . to . throw ( ) ;
61
58
62
59
const snippetLines = snippet . split ( '\n' ) ;
63
60
You can’t perform that action at this time.
0 commit comments