title: How do I test a computed property on a component in Ember?
body: <p>I have a component, <code>foo-table</code> that I am passing a list of objects, called <code>myList</code>.  I'm setting a computed property on the component that sorts the list. See below:</p>
  
  <pre><code>// app/components/foo-table.js
  export default Component.extend({
    sortedList: computed('myList', function foo() {
      const myList = this.getWithDefault('myList', []);
      return myList.sortBy('bar');
    }),
  });
  </code></pre>
  
  <p>How can I write a test to ensure the computed property is sorted? This is what I have so far:</p>
  
  <pre><code>// tests/integration/foo-table-test.js
  const MY_LIST = ['foo', 'bar', 'baz']
  
  test('it renders company industry component', function (assert) {
    this.set('myList', MY_LIST);
  
    this.render(hbs`
      {{foo-table myList=myList}}
    `);
  
    // TODO
    assert.equal(true, false);
  });
  </code></pre>