From 85eca8ef36a65ffbb3be85f9da6ed325b95e3f6b Mon Sep 17 00:00:00 2001 From: Aditya Date: Wed, 6 Feb 2019 10:53:47 +0530 Subject: [PATCH] [fix]: Object Oriented Programming: Inherit Behaviors from a Supertype (#35063) * fix: revert semicolon check * fix: test name --- .../inherit-behaviors-from-a-supertype.english.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/object-oriented-programming/inherit-behaviors-from-a-supertype.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/object-oriented-programming/inherit-behaviors-from-a-supertype.english.md index f9aed6ca63..06c7229af9 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/object-oriented-programming/inherit-behaviors-from-a-supertype.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/object-oriented-programming/inherit-behaviors-from-a-supertype.english.md @@ -33,9 +33,9 @@ tests: - text: The beagle variable should be defined. testString: assert(typeof beagle !== "undefined", 'The beagle variable should be defined.'); - text: The duck variable should be initialised with Object.create. - testString: assert(/(let|const|var)\s*beagle\s*=\s*Object\.create\s*\(\s*Animal\.prototype\s*\)\s*;/.test(code), 'The duck variable should be initialised with Object.create'); + testString: assert(/(let|const|var)\s{1,}duck\s*=\s*Object\.create\s*\(\s*Animal\.prototype\s*\)\s*/.test(code), 'The duck variable should be initialised with Object.create.'); - text: The beagle variable should be initialised with Object.create. - testString: assert(/(let|const|var)\s*duck\s*=\s*Object\.create\s*\(\s*Animal\.prototype\s*\)\s*;/.test(code), 'The beagle variable should be initialised with Object.create.'); + testString: assert(/(let|const|var)\s{1,}beagle\s*=\s*Object\.create\s*\(\s*Animal\.prototype\s*\)\s*/.test(code), 'The beagle variable should be initialised with Object.create.'); - text: duck should have a prototype of Animal. testString: assert(duck instanceof Animal, 'duck should have a prototype of Animal.'); - text: beagle should have a prototype of Animal.