wyeworks/ember-qunit-nice-errors

View on GitHub
node-tests/fixtures/original/unit/not-prop-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.notPropEqual(result, true);
  assert.notPropEqual((function() { return true; })(), (function() { return true; })());
  assert.notPropEqual(1, 1, 'testing equality');
  assert.notPropEqual(true, true);
  assert.notPropEqual((1+2+3)-3*5*6, -84);
  assert.notPropEqual(function() { return true; }(), function(){ return true; }(), 'testing a function');
  assert.notPropEqual(obj.a, obj.b);
  assert.notPropEqual(testFunction(true), testFunction(true));
});

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