wyeworks/ember-qunit-nice-errors

View on GitHub
node-tests/fixtures/original/unit/equal.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', function(assert) {
  let result = testHelper([42]),
      obj = { a: true, b: false };

  assert.equal(result, true);
  assert.equal((function() { return true; })(), (function() { return true; })());
  assert.equal(1, 1, 'testing equality');
  assert.equal(true, true);
  assert.equal((1+2+3)-3*5*6, -84);
  assert.equal(function() { return true; }(), function(){ return true; }(), 'testing a function');
  assert.equal(obj.a, obj.b);
  assert.equal(testFunction(true), testFunction(true));
});

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