Fix broken code test

This commit is contained in:
Adam Chalmers
2025-01-29 10:49:12 -06:00
parent 1ae55c2946
commit 260ec9fe45
2 changed files with 1 additions and 17 deletions

View File

@ -185,7 +185,7 @@ test(
// error text on hover // error text on hover
await page.hover('.cm-lint-marker-error') await page.hover('.cm-lint-marker-error')
const crypticErrorText = `Expected a tag declarator` const crypticErrorText = `Expected a tag identifier`
await expect(page.getByText(crypticErrorText).first()).toBeVisible() await expect(page.getByText(crypticErrorText).first()).toBeVisible()
// black pixel means the scene has been cleared. // black pixel means the scene has been cleared.

View File

@ -1,12 +1,10 @@
// Shelf Bracket // Shelf Bracket
// This is a shelf bracket made out of 6061-T6 aluminum sheet metal. The required thickness is calculated based on a point load of 300 lbs applied to the end of the shelf. There are two brackets holding up the shelf, so the moment experienced is divided by 2. The shelf is 1 foot long from the wall. // This is a shelf bracket made out of 6061-T6 aluminum sheet metal. The required thickness is calculated based on a point load of 300 lbs applied to the end of the shelf. There are two brackets holding up the shelf, so the moment experienced is divided by 2. The shelf is 1 foot long from the wall.
// Define our bracket feet lengths // Define our bracket feet lengths
const shelfMountL = 8 // The length of the bracket holding up the shelf is 6 inches const shelfMountL = 8 // The length of the bracket holding up the shelf is 6 inches
const wallMountL = 6 // the length of the bracket const wallMountL = 6 // the length of the bracket
// Define constants required to calculate the thickness needed to support 300 lbs // Define constants required to calculate the thickness needed to support 300 lbs
const sigmaAllow = 35000 // psi const sigmaAllow = 35000 // psi
const width = 6 // inch const width = 6 // inch
@ -15,26 +13,12 @@ const L = 12 // inches
const M = L * p / 2 // Moment experienced at fixed end of bracket const M = L * p / 2 // Moment experienced at fixed end of bracket
const FOS = 2 // Factor of safety of 2 to be conservative const FOS = 2 // Factor of safety of 2 to be conservative
// Calculate the thickness off the bending stress and factor of safety // Calculate the thickness off the bending stress and factor of safety
const thickness = sqrt(6 * M * FOS / (width * sigmaAllow)) const thickness = sqrt(6 * M * FOS / (width * sigmaAllow))
// 0.25 inch fillet radius // 0.25 inch fillet radius
const filletR = 0.25 const filletR = 0.25
// Sketch the bracket and extrude with fillets // Sketch the bracket and extrude with fillets
const bracket = startSketchOn('XY') const bracket = startSketchOn('XY')
|> startProfileAt([0, 0], %) |> startProfileAt([0, 0], %)