无法让 Ember 测试失败

Cannot get Ember test to fail

我对 Ember 测试非常陌生,但到目前为止已经在网上找到了很多有用的文档(谢谢大家!)。不过,我在这里遇到的问题之一是我无法让测试失败。奇怪,我知道。例如,我有以下内容:

import {
  module,
  test
} from 'qunit';

module("Example tests");

test("This is an example test", function(assert) {
  assert.equal(1, 1, "Ember knows 1 is equal to 1");
});

test("This is another example test", function(assert) {
  assert.notEqual(1, 2, "Ember knows 1 is not equal to 2");
});

test("This is a 3rd example test", function(assert) {
  assert.equal(1, 2, "Luke, you're an idiot");
});

但是,如果我 运行 ember-cli 命令:ember 测试 它说一切都会过去..

$ ember test
Future versions of Ember CLI will not support v0.10.38. Please update to Node 0.12 or io.js.
version: 0.2.2

A new version of ember-cli is available (0.2.3). To install it, type ember update.
Could not find watchman, falling back to NodeWatcher for file system events.
Visit http://www.ember-cli.com/#watchman for more info.
Built project successfully. Stored in "/Users/luke/Examples/iris/tmp/class-tests_dist-DYvAvX3c.tmp".
ok 1 PhantomJS 1.9 - JSHint - .: app.js should pass jshint
ok 2 PhantomJS 1.9 - JSHint - helpers: helpers/resolver.js should pass jshint
ok 3 PhantomJS 1.9 - JSHint - helpers: helpers/start-app.js should pass jshint
ok 4 PhantomJS 1.9 - JSHint - .: router.js should pass jshint
ok 5 PhantomJS 1.9 - JSHint - .: test-helper.js should pass jshint
ok 6 PhantomJS 1.9 - JSHint - unit: unit/ExampleTest.js should pass jshint

1..6
# tests 6
# pass  6
# fail  0

# ok

我这里哪里做错了???

如有疑问,请查看 docs,测试需要以 -test.js 结束,以便 运行。