Skip to content

Commit d952a55

Browse files
committed
fix: prettier formatting
1 parent d72d04a commit d952a55

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

packages/mongodb-constants/src/stage-operators.spec.ts

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,15 @@ describe('stage operators', function () {
4646
it(`${operator.name} has a properly formatted snippet`, function () {
4747
const snippet = replacePlaceholders(operator.snippet);
4848

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();
6158

6259
const snippetLines = snippet.split('\n');
6360

0 commit comments

Comments
 (0)