これらは私がこれまでに書いたテストです。この最初のアサーションはパスします。2 番目のエラーが表示されます: TypeError: undefined is not a function
。
/*global describe, it, assert */
App.rootElement = '#emberTestingDiv';
App.setupForTesting();
App.injectTestHelpers();
module('Integration Tests', {
setup: function() {
App.reset();
}
});
// Tests
test('search terms?', function() {
App.mainSearcher.params.q = 'our keywords';
equal(App.mainSearcher.params.q, 'our keywords');
});
test('router?', function() {
visit('/search?q=method&sort=patAssignorEarliestExDate%20desc');
andThen(function(){
equal(find('title').text(), 'method');
});
});
なぜ私はそれを得ているのか分かりません。私は grunt-contrib-qunit を使用しているので、grunt/npm を介して Ember アプリで qunit を設定する際に何か問題があったかどうか知りたいです。
しかし、最初のテストが合格しているので、それだけではないと思います。
助けていただければ幸いです。
ありがとう!
編集:
ここに完全なエラーがあります
Died on test #1 at file:///Users/jwhite/Documents/workspace/uspto-aotw/front-end/test/spec/test.js:21:1: undefined is not a function
Source: TypeError: undefined is not a function
行 21 は、2 番目のテストの最初の行です。
test('router?', function() {