@sprucelabs/heartwood-view-controllers 112.1.5 → 112.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -919,9 +919,11 @@ const vcAssert = {
|
|
|
919
919
|
var _a, _b, _c;
|
|
920
920
|
if (vc instanceof DialogViewController) {
|
|
921
921
|
vc = vc.getCardVc();
|
|
922
|
+
assert.isTruthy(vc, `Your dialog is not rendering a card! Try 'this.renderDialog(cardVc.render())'`);
|
|
922
923
|
}
|
|
923
924
|
else if (vc instanceof LockScreenSkillViewController) {
|
|
924
925
|
vc = vc.getSkillViewVc();
|
|
926
|
+
assert.isTruthy(vc, `Your LockScreen is not rendering a skill view! Try 'this.renderLockScreen(lockSvc.render())'`);
|
|
925
927
|
}
|
|
926
928
|
assert.isTruthy(vc, `ViewController missing. It may help to check your ViewController's render method to ensure you're properly returning a controller. Here are a few examples of how to do this:
|
|
927
929
|
|
|
@@ -871,9 +871,11 @@ const vcAssert = {
|
|
|
871
871
|
assertRendersAsInstanceOf(vc, Class) {
|
|
872
872
|
if (vc instanceof Dialog_vc_1.default) {
|
|
873
873
|
vc = vc.getCardVc();
|
|
874
|
+
test_utils_1.assert.isTruthy(vc, `Your dialog is not rendering a card! Try 'this.renderDialog(cardVc.render())'`);
|
|
874
875
|
}
|
|
875
876
|
else if (vc instanceof LockScreen_svc_1.default) {
|
|
876
877
|
vc = vc.getSkillViewVc();
|
|
878
|
+
test_utils_1.assert.isTruthy(vc, `Your LockScreen is not rendering a skill view! Try 'this.renderLockScreen(lockSvc.render())'`);
|
|
877
879
|
}
|
|
878
880
|
test_utils_1.assert.isTruthy(vc, `ViewController missing. It may help to check your ViewController's render method to ensure you're properly returning a controller. Here are a few examples of how to do this:
|
|
879
881
|
|
package/package.json
CHANGED