Skip to content

Commit 8d40191

Browse files
committed
test: fixing SASS variable name in example styles
Making the variable name match the element it's being applied to.
1 parent d4a4984 commit 8d40191

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

example/src/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default function App() {
2828
<p>Test process.env variable: {process.env.TEST_VARIABLE}</p>
2929
<p>Non-existent process.env variable (nothing here is good): {process.env.I_AM_NOT_HERE}</p>
3030
<h2>env.config.js tests</h2>
31-
<p>env.config.js boolean test:
31+
<p><span>env.config.js boolean test: </span>
3232
{config.FALSE_VALUE === false ? config.CORRECT_BOOL_VALUE : config.INCORRECT_BOOL_VALUE}
3333
</p>
3434
<p>env.config.js integer test: {Number.isInteger(config.INTEGER_VALUE) ? 'It was an integer. Great.' : 'It was not an integer! Why not? '}</p>

example/src/__snapshots__/App.test.jsx.snap

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ exports[`Basic test should render 1`] = `
8787
env.config.js tests
8888
</h2>
8989
<p>
90-
env.config.js boolean test:
90+
<span>
91+
env.config.js boolean test:
92+
</span>
9193
Good, false meant false. We did not cast a boolean to a string.
9294
</p>
9395
<p>

example/src/style.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
$h1-color: red;
1+
$h3-color: red;
22

33
h3 {
4-
color: $h1-color;
4+
color: $h3-color;
55
}
66

77
.text-align-right {

0 commit comments

Comments
 (0)