Skip to content

Commit

Permalink
Test template string
Browse files Browse the repository at this point in the history
  • Loading branch information
Cal-L committed Feb 29, 2024
1 parent 895b946 commit 6415933
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ import {
hasNumberOfCodeBlocksIncreased,
} from '../common/shared';

// Define it as a template string to prevent original commit from being picked up
const fromEnzyme = `from ${'enzyme'}`
const codeBlocks = [
"from 'enzyme'",
fromEnzyme,
];

function preventEnzymeImportSyntax(diff: string): boolean {
Expand Down

0 comments on commit 6415933

Please sign in to comment.