We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e115f6d commit 55d9d15Copy full SHA for 55d9d15
test/analyzers/two-fer/issue68.ts
@@ -0,0 +1,18 @@
1
+import { TwoFerAnalyzer } from '~src/analyzers/practice/two-fer'
2
+import { makeAnalyze } from '~test/helpers/smoke'
3
+
4
+const analyze = makeAnalyze(() => new TwoFerAnalyzer())
5
6
+describe('When running analysis on two-fer', () => {
7
+ it('does not generate actionable comments when using coalesce', async () => {
8
+ const solutionContent = `
9
+ export const twoFer = (name) => {
10
+ return \`One for \${name ?? 'you'}, one for me.\`
11
+ }
12
+ `.trim()
13
14
+ const output = await analyze(solutionContent)
15
16
+ expect(output.comments.length).toBe(0)
17
+ })
18
+})
0 commit comments