diff --git a/challenges/03-front-end-libraries/sass.json b/challenges/03-front-end-libraries/sass.json
index f9115732476..b340fa235e5 100644
--- a/challenges/03-front-end-libraries/sass.json
+++ b/challenges/03-front-end-libraries/sass.json
@@ -466,9 +466,8 @@
""
],
"tests": [
- "assert(code.match(/@extend\\s+?\\.info/g), 'message: Your code should use the @extend directive to extend the info class.');",
- "assert($('.info-important').css('background-color') == 'rgb(255, 0, 255)', 'message: Your info-important class should have a background-color set to magenta.');",
- "assert($('.info-important').css('width') == '200px', 'message: Your info-important class should inherit the styling from the info class.');"
+ "assert(code.match(/\\.info-important\\s*?{[\\s\\S]*background-color\\s*?:\\s*?magenta\\s*?;[\\s\\S]*}/gi), 'message: Your info-important class should have a background-color set to magenta.');",
+ "assert(code.match(/\\.info-important\\s*?{[\\s\\S]*@extend\\s*?.info\\s*?;[\\s\\S]*/gi), 'message: Your info-important class should use @extend to inherit the styling from the info class.');"
],
"solutions": [],
"hints": [],
@@ -478,4 +477,4 @@
"translations": {}
}
]
-}
\ No newline at end of file
+}