wyeworks/ember-qunit-nice-errors

View on GitHub
node-tests/fixtures/original/integration/custom-include/ok-test.js

Summary

Maintainability
C
1 day
Test Coverage
import { testHelper } from 'shell/helpers/test-helper';
import { module, test } from 'qunit';

function testFunction(a) {
  return a;
}

module('Unit | Helper | test helper');

//Replace this with your real tests.
test('it works', async function(assert) {
  let result = testHelper([42]),
      obj = { a: true, b: false };

  assert.ok(await Promise.resolve(2));
  assert.ok(() => { return true });
  assert.ok(class Person {});
  assert.ok(...arr);
  assert.ok((function() { return true; })());
  assert.ok(1===1, 'testing equality');
  assert.ok(true);
  assert.ok((1+2+3)-3*5*6);
  assert.ok(function() { return true; }(), 'testing a function');
  assert.ok(obj.a);
  assert.ok(testFunction(true));
  assert.ok((function() {
    return true;
  })());
});

test('it works - variable', function(a) {
   a.ok(result);
});