How do I test a static method on a model?


I have a model:

var Foo = Ember.Object.extend({
  // ...

… and I have defined a so-called named constructor:

  bar(baz) {
    // ...

Now I’m trying to test

import { moduleFor, test } from 'ember-qunit';

moduleFor('model:foo', 'Foo model');

test(' does the right thing', function (assert) {
  assert.propEqual(, {});

But QUnit gives me the following error:

‘Foo’ is undefined

How do I expose the Foo class name so that I can call a static method?