Fix lint errors
All checks were successful
CI / Lint (pull_request) Successful in 30s
CI / Test (pull_request) Successful in 43s
Release Drafter / Update release notes draft (pull_request) Successful in 8s

This commit is contained in:
2026-04-12 16:10:05 +04:00
parent 344a3067fa
commit 918a794784
2 changed files with 21 additions and 15 deletions

View File

@@ -318,15 +318,17 @@ module('Integration | Component | place-details', function (hooks) {
assert.ok(whatsappBlock, 'WhatsApp block is rendered');
const links = whatsappBlock.querySelectorAll('a[href^="https://wa.me/"]');
assert.strictEqual(
links.length,
2,
'Rendered exactly 2 WhatsApp links'
);
assert.strictEqual(links.length, 2, 'Rendered exactly 2 WhatsApp links');
// Verify it stripped the dashes and spaces for the wa.me URL
assert.strictEqual(links[0].getAttribute('href'), 'https://wa.me/+44987654321');
assert.strictEqual(links[1].getAttribute('href'), 'https://wa.me/+12345678900');
assert.strictEqual(
links[0].getAttribute('href'),
'https://wa.me/+44987654321'
);
assert.strictEqual(
links[1].getAttribute('href'),
'https://wa.me/+12345678900'
);
// Verify it kept the dashes and spaces for the visible text
assert.dom(links[0]).hasText('+44 987 654 321');