adopted-ember-addons / adopted-ember-addons/ember-notify
Acceptance Tests...again
- 主要語言
- JavaScript
- 星號
- 262
- 分支
- 96
- PR 合併指標
- 30 天內沒有已合併 PR
描述
I see that this has popped up here and there in previous issue but I am completely lost on how to verify success or failure on my tests.
Some examples seem to indicate you turn on alerts during testing but that slows things down:
// my-acceptence-test.js
import Notify from 'ember-notify';
Notify.testing = true;
I just want to detect if a notify.success() or notify.alert() is called from within the test. I've seen suggestions like "stub out notify.success" and to spy this.notify.alert() but I have no idea how to do that within a test.
Could someone give me a pointing to detect when success() or alert() is called from within an Acceptance test?
貢獻指南
評估
這個 Issue 還沒有評估資料。