Skip to content

Commit

Permalink
fix(test): update stale snapshots (#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sec-ant authored May 6, 2024
1 parent 662b6ac commit e79db2d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 14 deletions.
4 changes: 2 additions & 2 deletions crates/cli_bin/tests/snapshots/apply__output_jsonl.snap

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ variables:
scopedName: 0_3_$absolute_filename
ranges: []
- name: $body
scopedName: 11_0_$body
scopedName: 12_0_$body
ranges:
- start:
line: 1
Expand All @@ -29,7 +29,7 @@ variables:
startByte: 15
endByte: 20
- name: $match
scopedName: 11_1_$match
scopedName: 12_1_$match
ranges: []
sourceFile: "`function () { $body }`"
parsedPattern: "[..]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ variables:
scopedName: 0_3_$absolute_filename
ranges: []
- name: $match
scopedName: 11_0_$match
scopedName: 12_0_$match
ranges: []
- name: $body
scopedName: 12_0_$body
scopedName: 13_0_$body
ranges:
- start:
line: 1
Expand All @@ -32,7 +32,7 @@ variables:
startByte: 32
endByte: 37
- name: $args
scopedName: 12_1_$args
scopedName: 13_1_$args
ranges:
- start:
line: 1
Expand All @@ -43,7 +43,7 @@ variables:
startByte: 23
endByte: 28
- name: $body
scopedName: 13_0_$body
scopedName: 14_0_$body
ranges:
- start:
line: 1
Expand All @@ -54,7 +54,7 @@ variables:
startByte: 63
endByte: 68
- name: $args
scopedName: 13_1_$args
scopedName: 14_1_$args
ranges:
- start:
line: 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: apps/marzano/cli/tests/parse.rs
source: crates/cli_bin/tests/parse.rs
expression: v
---
__typename: PatternInfo
Expand All @@ -18,9 +18,8 @@ variables:
scopedName: 0_3_$absolute_filename
ranges: []
- name: $match
scopedName: 12_0_$match
scopedName: 13_0_$match
ranges: []
sourceFile: "engine marzano(0.1)\nlanguage js\n\nfunction adder() js {\n console.log(\"We are in JavaScript now!\");\n return 10 % 3\n}\n\n`x` => adder()"
parsedPattern: "[..]"
valid: true

4 changes: 2 additions & 2 deletions crates/cli_bin/tests/snapshots/parse__parses_grit_file.snap
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ variables:
scopedName: 0_3_$absolute_filename
ranges: []
- name: $msg
scopedName: 11_0_$msg
scopedName: 12_0_$msg
ranges:
- start:
line: 3
Expand All @@ -29,7 +29,7 @@ variables:
startByte: 26
endByte: 30
- name: $match
scopedName: 11_1_$match
scopedName: 12_1_$match
ranges: []
sourceFile: "language js\n\n`console.log($msg)`\n"
parsedPattern: "[..]"
Expand Down

0 comments on commit e79db2d

Please sign in to comment.