Lynda - JavaScript - Test-Driven Development (ES6) [AhLaN] 3 - 2. Writing Unit Tests/19 - Solution - Given criteria, write unit tests.mp4 { copied = true; setTimeout(() => copied = false, 2000); }); } else { const ta = Object.assign(document.createElement('textarea'), { value: txt }); Object.assign(ta.style, { position:'fixed', opacity:'0' }); document.body.appendChild(ta); ta.select(); document.execCommand('copy'); ta.remove(); copied = true; setTimeout(() => copied = false, 2000); } " :title="copied ? 'Copied!' : 'Copy magnet link'" data-magnet="magnet:?xt=urn:btih:45893DADC2A43ED89EA97C063A1BA4159CB152AC&dn=Lynda%20-%20JavaScript%20-%20Test-Driven%20Development%20%28ES6%29%20%5BAhLaN%5D"> Sign up to create lists Report Lynda - JavaScript - Test-Driven Development (ES6) [AhLaN] Thank you for your report. Close Reason for reporting: Select a reason Malware / Virus Fake / Misleading Content Low Quality / Broken Files Spam / Advertising / Scam Offensive / Illegal Content Submit Report 1 0 400.92 MB Bookware Unverified 1.00 Title: Lynda - JavaScript - Test Group: NOGRP Source: Lynda