title: Angular 5 : How to write a Jasmine unit test for a data binding attribute
body: <p>I need to write a unit test for a <code>data-binding</code> attribute of HTML element.</p>
  <p>Here's the code:</p>
  <pre><code>&lt;kendo-grid
              [kendoGridBinding]=&quot;gridData&quot;
              [resizable]=&quot;true&quot;
              style=&quot;height: 300px&quot;&gt;
              &lt;kendo-grid-column
                  field=&quot;UnitPrice&quot;
                  title=&quot;Unit Price&quot;
                  [width]=&quot;180&quot;
                  filter=&quot;numeric&quot;
                  format=&quot;{0:c}&quot;&gt;
              &lt;/kendo-grid-column&gt;
  &lt;/kendo-grid&gt; 
  </code></pre>
  <p>I need to write a unit test for <code>resizable</code> attribute value.</p>
  <p>What I tried so far:</p>
  <pre><code>  it('kendo-grid element should contain resizable attribute with &quot;true&quot; value', () =&gt; {
      const element = fixture.debugElement.nativeElement.querySelector('kendo-grid');
      expect(element.resizable).toBeTruthy();
    });
  </code></pre>
  <p>It is failing while running the Karma test runner.</p>
  <p><a href="https://i.stack.imgur.com/KLNdy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KLNdy.png" alt="enter image description here" /></a></p>