title: ReferenceError: document is not defined
body: <p>I have a problem with a test on travis-ci. I want to test color change of message and receive an error like in the title. Anyone know how to fix it? Thanks</p>
  
  <p><strong>Javascript</strong></p>
  
  <pre><code>test('red color', function(done) 
  {
        var e = document.getElementById('messages');
        e.style.color = "#f00";
        done();
  });
  </code></pre>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;template name="messages"&gt; 
  &lt;section id="messages"&gt; 
  &lt;h2&gt;Messages:&lt;/h2&gt; 
  {{#each messages}} 
  &lt;strong&gt;{{name}}:&lt;/strong&gt; {{message}}&lt;br&gt; 
  {{/each}} 
  &lt;/section&gt; 
  &lt;/template&gt; 
  </code></pre>