Skip to content

Commit

Permalink
Update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchalmers committed Feb 6, 2025
1 parent 2dc75f0 commit 43a3465
Show file tree
Hide file tree
Showing 46 changed files with 508 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lang/artifact.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const mySketch001 = startSketchOn('XY')
],
id: expect.any(String),
artifactId: expect.any(String),
originalId: expect.any(String),
units: {
type: 'Mm',
},
Expand Down Expand Up @@ -98,6 +99,7 @@ const mySketch001 = startSketchOn('XY')
],
sketch: {
id: expect.any(String),
originalId: expect.any(String),
artifactId: expect.any(String),
units: {
type: 'Mm',
Expand Down Expand Up @@ -203,6 +205,7 @@ const sk2 = startSketchOn('XY')
],
sketch: {
id: expect.any(String),
originalId: expect.any(String),
artifactId: expect.any(String),
__meta: expect.any(Array),
on: expect.any(Object),
Expand Down Expand Up @@ -308,6 +311,7 @@ const sk2 = startSketchOn('XY')
],
sketch: {
id: expect.any(String),
originalId: expect.any(String),
artifactId: expect.any(String),
units: {
type: 'Mm',
Expand Down
1 change: 1 addition & 0 deletions src/lang/executor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ const newVar = myVar + 1`
},
],
id: expect.any(String),
originalId: expect.any(String),
artifactId: expect.any(String),
units: {
type: 'Mm',
Expand Down
1 change: 1 addition & 0 deletions src/wasm-lib/kcl/src/std/sketch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1360,6 +1360,7 @@ pub(crate) async fn inner_start_profile_at(

let sketch = Sketch {
id: path_id,
original_id: path_id,
artifact_id: path_id.into(),
on: sketch_surface.clone(),
paths: vec![],
Expand Down
2 changes: 2 additions & 0 deletions src/wasm-lib/kcl/tests/angled_line/program_memory.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
source: kcl/src/simulation_tests.rs
description: Program memory after executing angled_line.kcl
snapshot_kind: text
---
{
"environments": [
Expand Down Expand Up @@ -346,6 +347,7 @@ description: Program memory after executing angled_line.kcl
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ snapshot_kind: text
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down Expand Up @@ -904,6 +905,7 @@ snapshot_kind: text
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down Expand Up @@ -975,6 +977,7 @@ snapshot_kind: text
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down Expand Up @@ -1412,6 +1415,7 @@ snapshot_kind: text
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down Expand Up @@ -1878,6 +1882,7 @@ snapshot_kind: text
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down Expand Up @@ -1949,6 +1954,7 @@ snapshot_kind: text
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ snapshot_kind: text
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down Expand Up @@ -609,6 +610,7 @@ snapshot_kind: text
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ snapshot_kind: text
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ snapshot_kind: text
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down Expand Up @@ -695,6 +696,7 @@ snapshot_kind: text
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down Expand Up @@ -757,6 +759,7 @@ snapshot_kind: text
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down Expand Up @@ -1332,6 +1335,7 @@ snapshot_kind: text
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down Expand Up @@ -1394,6 +1398,7 @@ snapshot_kind: text
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down Expand Up @@ -1517,6 +1522,7 @@ snapshot_kind: text
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down Expand Up @@ -2236,6 +2242,7 @@ snapshot_kind: text
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down Expand Up @@ -2298,6 +2305,7 @@ snapshot_kind: text
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down Expand Up @@ -2421,6 +2429,7 @@ snapshot_kind: text
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down Expand Up @@ -2483,6 +2492,7 @@ snapshot_kind: text
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down Expand Up @@ -2836,6 +2846,7 @@ snapshot_kind: text
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down Expand Up @@ -3202,6 +3213,7 @@ snapshot_kind: text
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down Expand Up @@ -3264,6 +3276,7 @@ snapshot_kind: text
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down Expand Up @@ -3779,6 +3792,7 @@ snapshot_kind: text
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down Expand Up @@ -3841,6 +3855,7 @@ snapshot_kind: text
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down Expand Up @@ -3964,6 +3979,7 @@ snapshot_kind: text
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down Expand Up @@ -4628,6 +4644,7 @@ snapshot_kind: text
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down Expand Up @@ -4690,6 +4707,7 @@ snapshot_kind: text
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down Expand Up @@ -4813,6 +4831,7 @@ snapshot_kind: text
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down Expand Up @@ -4875,6 +4894,7 @@ snapshot_kind: text
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
source: kcl/src/simulation_tests.rs
description: Program memory after executing basic_fillet_cube_close_opposite.kcl
snapshot_kind: text
---
{
"environments": [
Expand Down Expand Up @@ -422,6 +423,7 @@ description: Program memory after executing basic_fillet_cube_close_opposite.kcl
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
source: kcl/src/simulation_tests.rs
description: Program memory after executing basic_fillet_cube_end.kcl
snapshot_kind: text
---
{
"environments": [
Expand Down Expand Up @@ -353,6 +354,7 @@ description: Program memory after executing basic_fillet_cube_end.kcl
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
source: kcl/src/simulation_tests.rs
description: Program memory after executing basic_fillet_cube_next_adjacent.kcl
snapshot_kind: text
---
{
"environments": [
Expand Down Expand Up @@ -491,6 +492,7 @@ description: Program memory after executing basic_fillet_cube_next_adjacent.kcl
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
source: kcl/src/simulation_tests.rs
description: Program memory after executing basic_fillet_cube_previous_adjacent.kcl
snapshot_kind: text
---
{
"environments": [
Expand Down Expand Up @@ -491,6 +492,7 @@ description: Program memory after executing basic_fillet_cube_previous_adjacent.
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
source: kcl/src/simulation_tests.rs
description: Program memory after executing basic_fillet_cube_start.kcl
snapshot_kind: text
---
{
"environments": [
Expand Down Expand Up @@ -353,6 +354,7 @@ description: Program memory after executing basic_fillet_cube_start.kcl
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
source: kcl/src/simulation_tests.rs
description: Program memory after executing big_number_angle_to_match_length_x.kcl
snapshot_kind: text
---
{
"environments": [
Expand Down Expand Up @@ -253,6 +254,7 @@ description: Program memory after executing big_number_angle_to_match_length_x.k
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
},
Expand Down
Loading

0 comments on commit 43a3465

Please sign in to comment.