@sprucelabs/heartwood-view-controllers 112.1.5 → 112.1.7
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,11 +919,13 @@ 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
|
-
assert.isTruthy(vc, `
|
|
928
|
+
assert.isTruthy(vc, `The view you sent me is missing a controller. It may help to check your render method to ensure you're properly returning a controller. Here are a few examples of how to do this:
|
|
927
929
|
|
|
928
930
|
1. Rendering a SubView:
|
|
929
931
|
|
|
@@ -871,11 +871,13 @@ 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
|
-
test_utils_1.assert.isTruthy(vc, `
|
|
880
|
+
test_utils_1.assert.isTruthy(vc, `The view you sent me is missing a controller. It may help to check your render method to ensure you're properly returning a controller. Here are a few examples of how to do this:
|
|
879
881
|
|
|
880
882
|
1. Rendering a SubView:
|
|
881
883
|
|
package/package.json
CHANGED