Skip to content

Commit

Permalink
chore: update dedent dep
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Jul 31, 2023
1 parent 0b7c3e5 commit e99b861
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
21 changes: 14 additions & 7 deletions src/rules/__tests__/prefer-snapshot-hint.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,6 @@ ruleTester.run('prefer-snapshot-hint (always)', rule, {
`,
options: ['always'],
},
{
code: dedent`
const x = "snapshot";
expect(1).toMatchSnapshot(\`my $\{x}\`);
`,
options: ['always'],
},
{
code: 'expect(1).toThrowErrorMatchingSnapshot("my snapshot");',
options: ['always'],
Expand Down Expand Up @@ -208,6 +201,20 @@ ruleTester.run('prefer-snapshot-hint (always)', rule, {
},
],
},
{
code: dedent`
const x = "snapshot";
expect(1).toMatchSnapshot(\`my $\{x}\`);
`,
options: ['always'],
errors: [
{
messageId: 'missingHint',
column: 11,
line: 2,
},
],
},
],
});

Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4426,14 +4426,14 @@ __metadata:
linkType: hard

"dedent@npm:^1.0.1":
version: 1.2.0
resolution: "dedent@npm:1.2.0"
version: 1.5.0
resolution: "dedent@npm:1.5.0"
peerDependencies:
babel-plugin-macros: ^3.1.0
peerDependenciesMeta:
babel-plugin-macros:
optional: true
checksum: 239f12ddd443a1a59b210af10c9b30985bb0c177403a53353d3c450d13acec2e532ef03bc3ba31aee1ea6cfa54c865edcd5fa249a2f34ad447e68bdb6717e67b
checksum: 4af23b141e10a21138e5c481b7653e857c2c0c836741cb659f547b38d5d3bac93041e78892ab17b363a6eda815b809567b7df1e3dbc575a7d097d0f57e144ae8
languageName: node
linkType: hard

Expand Down

0 comments on commit e99b861

Please sign in to comment.