Skip to content

Commit e8aaf6b

Browse files
Merge pull request 4GeeksAcademy#97 from UmiKami/02.1-Background
02.1 background
2 parents 27c870b + a8e25b6 commit e8aaf6b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

exercises/02.1-Background/README.es.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Si es una imagen, puedes especificar si quieres que la imagen se repita horizont
1414

1515
4. Construye y previsualiza el ejercicio nuevamente.
1616

17-
5. Cambia el `background-repeat` a `inherit` para que se repita sobre el eje x y el eje y.
17+
5. Cambia el `background-repeat` a `repeat` para que se repita sobre el eje x y el eje y.
1818

1919
6. Construye y previsualiza el ejercicio nuevamente.
2020

exercises/02.1-Background/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ If it is an image, you can specify if you want the image to be repeated horizont
1919

2020
4. Build and Preview the exercise again.
2121

22-
5. Change the background-repeat to 'inherit' to make it repeat over the x axis and y axis.
22+
5. Change the background-repeat to 'repeat' to make it repeat over the x axis and y axis.
2323

2424
6. Build and Preview the exercise again.
2525

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
body {
22
background-image: url(https://4geeksacademy.github.io/exercise-assets/img/bg/small-mosaic.jpg);
33
background-size: contain;
4-
background-repeat: inherit;
5-
}
4+
background-repeat: repeat;
5+
}

exercises/02.1-Background/tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ describe("All the styles should be applied", ()=>{
2828
expect(styles["background-size"]).toBe("contain");
2929
});
3030

31-
test("the background-repeat should be 'inherit' without quotes", ()=>{
31+
test("the background-repeat should be 'repeat' without quotes", ()=>{
3232
document.querySelector(
3333
"head"
3434
).innerHTML = `<style>${css.toString()}</style>`;
3535

3636
let styles = window.getComputedStyle(body);
37-
expect(styles["background-repeat"]).toBe("inherit");
37+
expect(styles["background-repeat"]).toBe("repeat");
3838
});
3939

4040
test("You should not change the existing head tag elements", ()=>{

0 commit comments

Comments
 (0)