From 39df6a2b566ae8dc8e6aa9a97f3e2e4e951e7451 Mon Sep 17 00:00:00 2001 From: Randell Dawson <5313213+RandellDawson@users.noreply.github.com> Date: Fri, 15 Nov 2019 08:14:54 -0800 Subject: [PATCH] fix(curriculum): added new test to Give Links Meaning by Using Descriptive Link Text challenge to specifically for href attribute (#37699) * fix: added new test to test href attribute * fix: changed You to Your Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com> * fix: changed a to an Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com> --- ...-links-meaning-by-using-descriptive-link-text.english.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/give-links-meaning-by-using-descriptive-link-text.english.md b/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/give-links-meaning-by-using-descriptive-link-text.english.md index b6ce15dbfd..9c346c9357 100644 --- a/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/give-links-meaning-by-using-descriptive-link-text.english.md +++ b/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/give-links-meaning-by-using-descriptive-link-text.english.md @@ -24,8 +24,10 @@ The link text that Camper Cat is using is not very descriptive without the surro tests: - text: Your code should move the anchor a tags from around the words "Click here" to wrap around the words "information about batteries". testString: assert($('a').text().match(/^(information about batteries)$/g)); - - text: Make sure your a element has a closing tag. - testString: assert(code.match(/<\/a>/g) && code.match(/<\/a>/g).length === code.match(//g).length); + - text: Your a element should have an href attribute with a value of an empty string "". + testString: assert($('a').attr('href') === ''); + - text: Your a element should have a closing tag. + testString: assert($('a').length === code.match(/<\/a>/g).length); ```