這是一個基本的組件/集成測試。 import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('my-component', 'TODO: put something here', {
integrati
ember驗收測試錯誤「斷言失敗」沒有人有驗收測試錯誤的經驗嗎?我收到錯誤「Error:Assertion Failed:Unable to add'ember-application'class to rootElement。請確保您將rootElement設置爲正文或正文中的元素。」在任何地方都找不到任何答案。請幫忙。我被卡住了。
我使用Ember.Logger.error: if (isInvalid) {
Ember.Logger.error('this is invalid');
}
我想測試它在qunit: assert.throws(() => myFunction(), /this is invalid/, 'error was thrown');
但assert.throws不捕獲錯誤。如果