Skip to content

Commit 863e79a

Browse files
Shubh-Srivastava-5911Sembaukehuyenltnguyenmajestic-owl448
authored
fix(curriculum): test case improvement for CSS Lab "Build a moon orbit" (freeCodeCamp#62521)
Co-authored-by: Sem Bauke <sem@freecodecamp.org> Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> Co-authored-by: Ilenia <26656284+ilenia-magoni@users.noreply.github.com>
1 parent 8b8e27b commit 863e79a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

curriculum/challenges/english/blocks/lab-moon-orbit/66a37f37ef5823a313de8c26.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,9 @@ assert.strictEqual(new __helpers.CSSHelp(document).getStyle('.moon')?.left, '50%
185185
The `.moon` element should be adjusted horizontally by translating it to `-50%` across the x-axis.
186186
187187
```js
188-
assert.strictEqual(new __helpers.CSSHelp(document).getStyle('.moon')?.transform, 'translateX(-50%)');
188+
const transformValue = new __helpers.CSSHelp(document).getStyle('.moon')?.transform;
189+
const validTransforms = ['translateX(-50%)', 'translate(-50%)'];
190+
assert.oneOf(transformValue, validTransforms);
189191
```
190192
191193
The `.earth` selector should have a background color.

0 commit comments

Comments
 (0)