<p dir="auto">Hi,</p>
<p dir="auto">i think there is an error on TypeScript documentation &gt; Developer Guides &gt; 6. Dependency Injection.<br>
import {Injectable} from 'angular2/angular2'; should be import {Injectable} from 'angular2/core';</p>
<p dir="auto">Thanks for your work!</p>
<p dir="auto"><strong>I'm submitting a ...</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report
[ ] feature request
[ ] support request"><pre class="notranslate"><code class="notranslate">[x] bug report
[ ] feature request
[ ] support request
</code></pre></div>
<p dir="auto">This would appear to be an issue with Jasmine during the pretty printing stage, but I am also logging it here in case there is something about Angular's testing that is causing this issue and should be changed.<br>
<strong>Related Issue:</strong> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="202618968" data-permission-text="Title is private" data-url="https://github.com/jasmine/jasmine/issues/1263" data-hovercard-type="issue" data-hovercard-url="/jasmine/jasmine/issues/1263/hovercard" href="https://github.com/jasmine/jasmine/issues/1263">jasmine/jasmine#1263</a></p>
<p dir="auto"><strong>Current behavior</strong><br>
Attempting to test the existence of a <code class="notranslate">DebugElement</code> in a unit test results in the test hanging.</p>
<p dir="auto"><strong>Expected behavior</strong><br>
It should not hang. The test should immediately fail.</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br>
Set up a typical testing harness for an Angular component and create the following test:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var result = fixture.debugElement.query(By.css(&quot;#something&quot;));
// The following line hangs when result is a DebugElement
// Also occurs with .toBeNull() and some others
expect(result).toBeFalsy();"><pre class="notranslate"><code class="notranslate">var result = fixture.debugElement.query(By.css("#something"));
// The following line hangs when result is a DebugElement
// Also occurs with .toBeNull() and some others
expect(result).toBeFalsy();
</code></pre></div>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
N/A</p>
<p dir="auto"><strong>Please tell us about your environment:</strong><br>
Windows 10, Visual Studio Code, Karma</p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.4.10</li>
<li><strong>Language:</strong> TypeScript 2.2.1</li>
</ul>