@sprucelabs/spruce-heartwood-utils 19.6.2 → 19.6.3

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.
@@ -36,9 +36,10 @@ class MockRemoteViewControllerFactory {
36
36
  }
37
37
  assertSkillViewRendersRemoteCard(vc, id) {
38
38
  const cards = heartwood_view_controllers_1.vcAssert.assertSkillViewRendersCards(vc);
39
- test_utils_1.assert.isTruthy(
40
39
  //@ts-ignore
41
- cards.find((c) => c.id === id), `Could not find the remote card with the id '${id}'!`);
40
+ const match = cards.find((c) => c.id === id);
41
+ test_utils_1.assert.isTruthy(match, `Could not find the remote card with the id '${id}'!`);
42
+ heartwood_view_controllers_1.vcAssert.assertControllerInstanceOf(match, MockRemoteViewControllerFactory.controllers[id]);
42
43
  }
43
44
  static reset() {
44
45
  delete this.instance;
@@ -43,9 +43,10 @@ export default class MockRemoteViewControllerFactory {
43
43
  }
44
44
  assertSkillViewRendersRemoteCard(vc, id) {
45
45
  const cards = vcAssert.assertSkillViewRendersCards(vc);
46
- assert.isTruthy(
47
46
  //@ts-ignore
48
- cards.find((c) => c.id === id), `Could not find the remote card with the id '${id}'!`);
47
+ const match = cards.find((c) => c.id === id);
48
+ assert.isTruthy(match, `Could not find the remote card with the id '${id}'!`);
49
+ vcAssert.assertControllerInstanceOf(match, MockRemoteViewControllerFactory.controllers[id]);
49
50
  }
50
51
  static reset() {
51
52
  delete this.instance;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sprucelabs/spruce-heartwood-utils",
3
3
  "description": "Heartwood Utilities",
4
- "version": "19.6.2",
4
+ "version": "19.6.3",
5
5
  "skill": {
6
6
  "namespace": "heartwood"
7
7
  },