@sprucelabs/spruce-calendar-components 22.8.12 → 22.8.13

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.
@@ -5,12 +5,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const calendar_utils_1 = require("@sprucelabs/calendar-utils");
7
7
  const heartwood_view_controllers_1 = require("@sprucelabs/heartwood-view-controllers");
8
- const test_1 = require("@sprucelabs/test");
8
+ const test_utils_1 = require("@sprucelabs/test-utils");
9
9
  const just_clone_1 = __importDefault(require("just-clone"));
10
10
  const calendarAssert = {
11
11
  rendersTotalEvents(vc, expected) {
12
12
  const model = heartwood_view_controllers_1.renderUtil.render(vc);
13
- test_1.assert.isLength(model.events, expected);
13
+ test_utils_1.assert.isLength(model.events, expected);
14
14
  },
15
15
  hasEvent(vc, lookup) {
16
16
  const { events } = heartwood_view_controllers_1.renderUtil.render(vc);
@@ -22,19 +22,19 @@ const calendarAssert = {
22
22
  }
23
23
  actual.sort(sort);
24
24
  expected.sort(sort);
25
- test_1.assert.isEqualDeep(actual, expected);
25
+ test_utils_1.assert.isEqualDeep(actual, expected);
26
26
  },
27
27
  includesInEvent(events, lookup) {
28
28
  const match = events.find((e) => {
29
29
  try {
30
- test_1.assert.doesInclude(e, lookup);
30
+ test_utils_1.assert.doesInclude(e, lookup);
31
31
  return e;
32
32
  // eslint-disable-next-line no-empty
33
33
  }
34
34
  catch (_a) { }
35
35
  return null;
36
36
  });
37
- test_1.assert.isTruthy(match, `I could not find an event that matched:\n\n${test_1.assertUtil.stringify(lookup)}`);
37
+ test_utils_1.assert.isTruthy(match, `I could not find an event that matched:\n\n${test_utils_1.assertUtil.stringify(lookup)}`);
38
38
  return match;
39
39
  },
40
40
  eventIsDuration(event, expectedDuration) {
@@ -42,7 +42,7 @@ const calendarAssert = {
42
42
  minutes += timeBlock.durationMinutes;
43
43
  return minutes;
44
44
  }, 0);
45
- test_1.assert.isEqual(duration, expectedDuration);
45
+ test_utils_1.assert.isEqual(duration, expectedDuration);
46
46
  },
47
47
  eventsFallOnDows(events, expectedDows) {
48
48
  const remaining = [...expectedDows];
@@ -50,25 +50,25 @@ const calendarAssert = {
50
50
  const dow = calendar_utils_1.dateUtil.getDayOfWeek(event.startDateTimeMs);
51
51
  const idx = remaining.indexOf(dow);
52
52
  if (idx === -1) {
53
- test_1.assert.fail(`Checking days of week and got ${dow} but it wasn't in the array of expected dows.`);
53
+ test_utils_1.assert.fail(`Checking days of week and got ${dow} but it wasn't in the array of expected dows.`);
54
54
  }
55
55
  remaining.splice(idx, 1);
56
56
  }
57
57
  if (remaining.length > 0) {
58
- test_1.assert.fail(`Didn't find the following days of week in events:\n\n${test_1.assertUtil.stringify(remaining)}`);
58
+ test_utils_1.assert.fail(`Didn't find the following days of week in events:\n\n${test_utils_1.assertUtil.stringify(remaining)}`);
59
59
  }
60
60
  },
61
61
  eventEquals(actual, expected) {
62
62
  var _a, _b, _c;
63
- test_1.assert.isTruthy(actual, 'Event is missing');
64
- test_1.assert.isTruthy(expected, 'Event is missing');
65
- test_1.assert.isEqual(actual.startDateTimeMs, expected.startDateTimeMs, 'startDateTimeMs does not match');
66
- test_1.assert.isEqual((_a = actual.isBusy) !== null && _a !== void 0 ? _a : false, (_b = expected.isBusy) !== null && _b !== void 0 ? _b : false, `isBusy does not match, needs to be '${(_c = expected.isBusy) !== null && _c !== void 0 ? _c : false}'`);
63
+ test_utils_1.assert.isTruthy(actual, 'Event is missing');
64
+ test_utils_1.assert.isTruthy(expected, 'Event is missing');
65
+ test_utils_1.assert.isEqual(actual.startDateTimeMs, expected.startDateTimeMs, 'startDateTimeMs does not match');
66
+ test_utils_1.assert.isEqual((_a = actual.isBusy) !== null && _a !== void 0 ? _a : false, (_b = expected.isBusy) !== null && _b !== void 0 ? _b : false, `isBusy does not match, needs to be '${(_c = expected.isBusy) !== null && _c !== void 0 ? _c : false}'`);
67
67
  const cleanedActual = (0, just_clone_1.default)(actual);
68
68
  const cleanedExpected = (0, just_clone_1.default)(expected);
69
69
  cleanEvent(cleanedActual);
70
70
  cleanEvent(cleanedExpected);
71
- test_1.assert.isEqualDeep(cleanedActual, cleanedExpected, 'Your event did not equal what I expected!');
71
+ test_utils_1.assert.isEqualDeep(cleanedActual, cleanedExpected, 'Your event did not equal what I expected!');
72
72
  },
73
73
  };
74
74
  function cleanEvent(obj, propsToIgnore = [
@@ -7,8 +7,8 @@ const heartwood_view_controllers_1 = require("@sprucelabs/heartwood-view-control
7
7
  const schema_1 = require("@sprucelabs/schema");
8
8
  const spruce_skill_utils_1 = require("@sprucelabs/spruce-skill-utils");
9
9
  const spruce_test_fixtures_1 = require("@sprucelabs/spruce-test-fixtures");
10
- const test_1 = require("@sprucelabs/test");
11
10
  const test_utils_1 = require("@sprucelabs/test-utils");
11
+ const test_utils_2 = require("@sprucelabs/test-utils");
12
12
  const AbstractCalendarEventToolBeltState_1 = __importDefault(require("../../../toolBelt/states/AbstractCalendarEventToolBeltState"));
13
13
  const Calendar_vc_1 = __importDefault(require("../../../viewControllers/Calendar.vc"));
14
14
  const EventControlsCard_vc_1 = __importDefault(require("../../../viewControllers/EventControlsCard.vc"));
@@ -67,9 +67,9 @@ const calendarSkillAssert = {
67
67
  },
68
68
  });
69
69
  const organization = organizations.pop();
70
- test_1.assert.isTruthy(organization, `You gotta @seed('organizations', 1) before you can assert a calendar is created on install.`);
70
+ test_utils_1.assert.isTruthy(organization, `You gotta @seed('organizations', 1) before you can assert a calendar is created on install.`);
71
71
  const skill = spruce_skill_utils_1.AuthService.Auth(process.cwd()).getCurrentSkill();
72
- test_1.assert.isTruthy(skill, `Make sure you registered your skill before you can do anything else. Try 'spruce register'.`);
72
+ test_utils_1.assert.isTruthy(skill, `Make sure you registered your skill before you can do anything else. Try 'spruce register'.`);
73
73
  const responses = await client.emit('did-install::v2020_12_25', {
74
74
  target: {
75
75
  organizationId: organization.id,
@@ -80,7 +80,7 @@ const calendarSkillAssert = {
80
80
  throw (_b = (_a = responses.responses[0].errors) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : `did-instal error`;
81
81
  }
82
82
  if (responses.totalResponses === 0) {
83
- test_1.assert.fail(`did-install listener missing! To get this test passing your skill will need to be listening to did-install, try 'spruce create.listener' and look under Mercury. You may also need to boot your skill with 'await this.bootSkill()'`);
83
+ test_utils_1.assert.fail(`did-install listener missing! To get this test passing your skill will need to be listening to did-install, try 'spruce create.listener' and look under Mercury. You may also need to boot your skill with 'await this.bootSkill()'`);
84
84
  }
85
85
  let cal;
86
86
  try {
@@ -93,7 +93,7 @@ const calendarSkillAssert = {
93
93
  cal = calendar;
94
94
  }
95
95
  catch (err) {
96
- test_1.assert.fail(`It looks like you still need to create a calendar, maybe the following code will help:
96
+ test_utils_1.assert.fail(`It looks like you still need to create a calendar, maybe the following code will help:
97
97
  const events = event.skill.getFeatureByCode('event') as EventFeature
98
98
  const client = await events.connectToApi()
99
99
 
@@ -112,7 +112,7 @@ await client.emitAndFlattenResponses(
112
112
  )\n\nOh, and here's the original error: ${(_d = (_c = err.stack) !== null && _c !== void 0 ? _c : err.message) !== null && _d !== void 0 ? _d : err}`);
113
113
  }
114
114
  if (typeSlugs) {
115
- test_1.assert.isEqualDeep(cal.eventTypes, typeSlugs, `Your calendar does not have types set to: [${typeSlugs.join(', ')}]`);
115
+ test_utils_1.assert.isEqualDeep(cal.eventTypes, typeSlugs, `Your calendar does not have types set to: [${typeSlugs.join(', ')}]`);
116
116
  }
117
117
  },
118
118
  async createsCalendarsWithMultipleInstalls(calendarSlug, client) {
@@ -121,7 +121,7 @@ await client.emitAndFlattenResponses(
121
121
  await this.createsCalendarOnInstall(calendarSlug, client);
122
122
  }
123
123
  catch (err) {
124
- test_1.assert.fail(`You tried to create the same calendar twice! It's time for the next step (don't forget to extract):
124
+ test_utils_1.assert.fail(`You tried to create the same calendar twice! It's time for the next step (don't forget to extract):
125
125
 
126
126
  try {
127
127
  await client.emitAndFlattenResponses('calendar.get-calendar::v2021_05_19', {
@@ -150,7 +150,7 @@ try {
150
150
  async createsEventTypesOnBoot(types, client, boot) {
151
151
  assertRanBeforeEach(this);
152
152
  await (boot === null || boot === void 0 ? void 0 : boot());
153
- test_1.assert.isTruthy(
153
+ test_utils_1.assert.isTruthy(
154
154
  //@ts-ignore
155
155
  client.auth.skill, `You gotta be logged in as a skill! Try 'const { client } = await this.skills.loginAsCurrentSkill()'`);
156
156
  const typeSlugs = types.map((t) => (typeof t === 'string' ? t : t.typeSlug));
@@ -169,7 +169,7 @@ try {
169
169
  shouldShowOnlyMine: true,
170
170
  },
171
171
  });
172
- test_1.assert.isAbove(calendarEventTypes.length, 0, `No event types were created. Make sure you are listening to the 'did-boot' event and booted. Use 'spruce create.listener' and look under Skill (or await this.bootSkill()). Then, drop in something like this:\n\n
172
+ test_utils_1.assert.isAbove(calendarEventTypes.length, 0, `No event types were created. Make sure you are listening to the 'did-boot' event and booted. Use 'spruce create.listener' and look under Skill (or await this.bootSkill()). Then, drop in something like this:\n\n
173
173
  await client.emitAndFlattenResponses('calendar.create-calendar-event-type::v2021_05_19', {
174
174
  payload: {
175
175
  name: '${typeSlugs[0]}',
@@ -182,7 +182,7 @@ await client.emitAndFlattenResponses('calendar.create-calendar-event-type::v2021
182
182
  viewControllerId: cet.viewControllerId,
183
183
  }))
184
184
  .sort(sort);
185
- test_1.assert.isEqualDeep(normalizedActual, normalizedExpected, 'The event types I was found were not created as expected.');
185
+ test_utils_1.assert.isEqualDeep(normalizedActual, normalizedExpected, 'The event types I was found were not created as expected.');
186
186
  },
187
187
  async createsEventTypesWithMultipleBoots(types, client, boot) {
188
188
  await this.createsEventTypesOnBoot(types, client, boot);
@@ -204,20 +204,20 @@ await client.emitAndFlattenResponses('calendar.create-calendar-event-type::v2021
204
204
  });
205
205
  calendarVc.setDefaultControllerForEvents(event.id);
206
206
  const vc = calendarVc.getEventVc(event.id);
207
- test_1.assert.isFunction(vc.getToolBeltState, `Bad event vc. You need to make sure your event vc extends and implements what it needs to! Try:
207
+ test_utils_1.assert.isFunction(vc.getToolBeltState, `Bad event vc. You need to make sure your event vc extends and implements what it needs to! Try:
208
208
 
209
209
  class MyEventViewController
210
210
  extends AbstractCalendarEventViewController
211
211
  implements EventWithToolBeltState`);
212
212
  const state = vc.getToolBeltState();
213
- test_1.assert.isTrue(state instanceof ToolBeltClass, `Your event vc did not return the state I expected. Make sure getToolBeltState() is returning an instance of ${ToolBeltClass.name}.`);
213
+ test_utils_1.assert.isTrue(state instanceof ToolBeltClass, `Your event vc did not return the state I expected. Make sure getToolBeltState() is returning an instance of ${ToolBeltClass.name}.`);
214
214
  },
215
215
  async stateFetchesAndRendersRemoteTools(options) {
216
216
  assertRanBeforeEach(this);
217
217
  const { views, state } = (0, schema_1.assertOptions)(options, ['state', 'views']);
218
- const event = Object.assign(Object.assign({}, heartwood_view_controllers_1.calendarSeeder.generateEventValues()), { eventTypeSlug: (0, test_utils_1.generateId)() });
218
+ const event = Object.assign(Object.assign({}, heartwood_view_controllers_1.calendarSeeder.generateEventValues()), { eventTypeSlug: (0, test_utils_2.generateId)() });
219
219
  const org = await views.getScope().getCurrentOrganization();
220
- test_1.assert.isTruthy(org, `You gotta @seed('organizations', 1) to test fetching and rendering remote tools.`);
220
+ test_utils_1.assert.isTruthy(org, `You gotta @seed('organizations', 1) to test fetching and rendering remote tools.`);
221
221
  let passedTargetAndPayload;
222
222
  const VC_NAME_1 = 'calendars.test-one';
223
223
  const VC_NAME_2 = 'calendars.test-two';
@@ -236,19 +236,19 @@ class MyEventViewController
236
236
  const { toolBeltVc, stateMachine } = await CalendarToolBeltStateMachineTestFactory_1.default.StateMachine(views);
237
237
  await stateMachine.updateContext({ event });
238
238
  await stateMachine.transitionTo(state);
239
- test_1.assert.isTruthy(passedTargetAndPayload, `You aren't emitting 'calendar.register-event-tools::v2021_05_19'.
239
+ test_utils_1.assert.isTruthy(passedTargetAndPayload, `You aren't emitting 'calendar.register-event-tools::v2021_05_19'.
240
240
 
241
241
  Try adding the following to your state's load():
242
242
 
243
243
  const tools = new CalendarToolRegistrar(stateMachine)
244
244
  await tools.fetchAndAddCards()
245
245
  `);
246
- test_1.assert.isEqualDeep(passedTargetAndPayload.target, { organizationId: org.id, calendarEventId: event.id }, `Your target is not what is expected! Make sure you are sending organizationId and calendarEventId`);
247
- test_1.assert.isEqualDeep(passedTargetAndPayload.payload, {
246
+ test_utils_1.assert.isEqualDeep(passedTargetAndPayload.target, { organizationId: org.id, calendarEventId: event.id }, `Your target is not what is expected! Make sure you are sending organizationId and calendarEventId`);
247
+ test_utils_1.assert.isEqualDeep(passedTargetAndPayload.payload, {
248
248
  eventTypeSlug: event.eventTypeSlug,
249
249
  }, `Your payload does not what is expected! Make sure you pass through eventTypeSlug.`);
250
250
  const tools = toolBeltVc.getTools();
251
- test_1.assert.isAbove(tools.length, 0, `It looks like you didn't add any tools to the tool belt! try sm.getToolBeltVc().addTool()`);
251
+ test_utils_1.assert.isAbove(tools.length, 0, `It looks like you didn't add any tools to the tool belt! try sm.getToolBeltVc().addTool()`);
252
252
  const results = [];
253
253
  for (let c = 0; c < vcIds.length; c++) {
254
254
  const id = vcIds[c];
@@ -257,22 +257,22 @@ await tools.fetchAndAddCards()
257
257
  toolId: id,
258
258
  Class: Classes[c],
259
259
  });
260
- test_1.assert.isTruthy(tool, `You didn't add the tools I expected! Make sure you are using the CalendarToolRegistrar!`);
260
+ test_utils_1.assert.isTruthy(tool, `You didn't add the tools I expected! Make sure you are using the CalendarToolRegistrar!`);
261
261
  }
262
262
  return results;
263
263
  },
264
264
  async toolBeltStateProperlyInheritsAbstractToolBeltState(stateMachine, state) {
265
265
  assertRanBeforeEach(this);
266
266
  (0, schema_1.assertOptions)({ stateMachine, state }, ['stateMachine', 'state']);
267
- test_1.assert.isTrue(state instanceof AbstractCalendarEventToolBeltState_1.default, `Your state does not extend 'AbstractCalendarEventToolBeltState'. Make sure you do that next!`);
267
+ test_utils_1.assert.isTrue(state instanceof AbstractCalendarEventToolBeltState_1.default, `Your state does not extend 'AbstractCalendarEventToolBeltState'. Make sure you do that next!`);
268
268
  await stateMachine.transitionTo(state);
269
- test_1.assert.isTruthy(state.getIsLoaded(), `You need to call super.load(stateMachine) in your state!`);
269
+ test_utils_1.assert.isTruthy(state.getIsLoaded(), `You need to call super.load(stateMachine) in your state!`);
270
270
  await stateMachine.on('did-update-context', () => { });
271
271
  const originalListenCount = stateMachine.listenCount('did-update-context');
272
272
  await state.destroy();
273
273
  const count = stateMachine.listenCount('did-update-context');
274
- test_1.assert.isAbove(count, originalListenCount - 2, `You 'sm.off(...)'ed too many listeners, make sure you pass the callback to remove to 'this.sm.off(...)'. It's the second param.`);
275
- test_1.assert.isEqual(count, originalListenCount - 1, `Don't forget to remove all listeners to the stateMachine. Either implement 'destroy()' and call 'this.sm.off(...)' or try 'await super.destroy()' in your state.`);
274
+ test_utils_1.assert.isAbove(count, originalListenCount - 2, `You 'sm.off(...)'ed too many listeners, make sure you pass the callback to remove to 'this.sm.off(...)'. It's the second param.`);
275
+ test_utils_1.assert.isEqual(count, originalListenCount - 1, `Don't forget to remove all listeners to the stateMachine. Either implement 'destroy()' and call 'this.sm.off(...)' or try 'await super.destroy()' in your state.`);
276
276
  },
277
277
  async toolBeltStateAddsTool(options) {
278
278
  const { state, toolId, views, Class } = (0, schema_1.assertOptions)(options, [
@@ -282,10 +282,10 @@ await tools.fetchAndAddCards()
282
282
  ]);
283
283
  const { toolBeltVc, stateMachine } = await CalendarToolBeltStateMachineTestFactory_1.default.StateMachine(views);
284
284
  await stateMachine.transitionTo(state);
285
- test_1.assert.isTruthy(toolBeltVc.getTool(toolId), `I could not find the tool with the id '${toolId}', try 'this.addTool(...)' from inside your state!`);
285
+ test_utils_1.assert.isTruthy(toolBeltVc.getTool(toolId), `I could not find the tool with the id '${toolId}', try 'this.addTool(...)' from inside your state!`);
286
286
  //@ts-ignore
287
287
  const match = state.vcs.find((o) => o.toolId === toolId);
288
- test_1.assert.isTruthy(match, `It looks like you added your tool directly to the toolBeltVc instead of to your parent class. 'this.addTool(...)'`);
288
+ test_utils_1.assert.isTruthy(match, `It looks like you added your tool directly to the toolBeltVc instead of to your parent class. 'this.addTool(...)'`);
289
289
  if (Class) {
290
290
  heartwood_view_controllers_1.vcAssert.assertToolInstanceOf(toolBeltVc, toolId, Class);
291
291
  }
@@ -302,7 +302,7 @@ async function fakeEventTypeEvents(eventTypes) {
302
302
  };
303
303
  });
304
304
  await spruce_test_fixtures_1.eventFaker.on('calendar.create-calendar-event-type::v2021_05_19', ({ payload, source }) => {
305
- const type = Object.assign({ id: (0, test_utils_1.generateId)(), source: source, viewControllerId: null }, payload);
305
+ const type = Object.assign({ id: (0, test_utils_2.generateId)(), source: source, viewControllerId: null }, payload);
306
306
  eventTypes.push(type);
307
307
  return {
308
308
  calendarEventType: type,
@@ -316,7 +316,7 @@ async function fakeEventTypeEvents(eventTypes) {
316
316
  calendarEventType: match,
317
317
  };
318
318
  }
319
- const type = Object.assign({ id: (0, test_utils_1.generateId)(), source: source, viewControllerId: null, slug: target.slug }, payload);
319
+ const type = Object.assign({ id: (0, test_utils_2.generateId)(), source: source, viewControllerId: null, slug: target.slug }, payload);
320
320
  eventTypes.push(type);
321
321
  return {
322
322
  calendarEventType: type,
@@ -326,8 +326,8 @@ async function fakeEventTypeEvents(eventTypes) {
326
326
  async function fakeCalendarEvents(calendars) {
327
327
  await spruce_test_fixtures_1.eventFaker.on('calendar.create-calendar::v2021_05_19', ({ payload, source, target }) => {
328
328
  const matches = calendars.filter((c) => c.slug === payload.slug);
329
- test_1.assert.isLength(matches, 0, `You already created a calendar the slug: ${payload.slug}!`);
330
- const calendar = Object.assign({ id: (0, test_utils_1.generateId)(), source: source, target }, payload);
329
+ test_utils_1.assert.isLength(matches, 0, `You already created a calendar the slug: ${payload.slug}!`);
330
+ const calendar = Object.assign({ id: (0, test_utils_2.generateId)(), source: source, target }, payload);
331
331
  calendars.push(calendar);
332
332
  return { calendar };
333
333
  });
@@ -340,7 +340,7 @@ async function fakeCalendarEvents(calendars) {
340
340
  });
341
341
  }
342
342
  function assertRanBeforeEach(me) {
343
- test_1.assert.isTrue(
343
+ test_utils_1.assert.isTrue(
344
344
  //@ts-ignore
345
345
  me._didBeforeEach, `You gotta add 'await calendarSkillAssert.beforeEach(...)' to the beforeEach() of your test.`);
346
346
  }
@@ -1,6 +1,6 @@
1
1
  import { dateUtil } from '@sprucelabs/calendar-utils';
2
2
  import { renderUtil, } from '@sprucelabs/heartwood-view-controllers';
3
- import { assert, assertUtil } from '@sprucelabs/test';
3
+ import { assert, assertUtil } from '@sprucelabs/test-utils';
4
4
  import clone from 'just-clone';
5
5
  const calendarAssert = {
6
6
  rendersTotalEvents(vc, expected) {
@@ -11,7 +11,7 @@ import { calendarSeeder, CardViewControllerImpl, vcAssert, } from '@sprucelabs/h
11
11
  import { assertOptions } from '@sprucelabs/schema';
12
12
  import { AuthService } from '@sprucelabs/spruce-skill-utils';
13
13
  import { eventFaker } from '@sprucelabs/spruce-test-fixtures';
14
- import { assert } from '@sprucelabs/test';
14
+ import { assert } from '@sprucelabs/test-utils';
15
15
  import { generateId } from '@sprucelabs/test-utils';
16
16
  import AbstractCalendarEventToolBeltState from '../../../toolBelt/states/AbstractCalendarEventToolBeltState.js';
17
17
  import CalendarViewController from '../../../viewControllers/Calendar.vc.js';
@@ -1,5 +1,5 @@
1
1
  import { assertOptions, SchemaError } from '@sprucelabs/schema';
2
- import { assert } from '@sprucelabs/test';
2
+ import { assert } from '@sprucelabs/test-utils';
3
3
  import clone from 'just-clone';
4
4
  export default class CalendarToolTestFactory {
5
5
  static Tool(stateMachine, vcId, options) {
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const schema_1 = require("@sprucelabs/schema");
7
- const test_1 = require("@sprucelabs/test");
7
+ const test_utils_1 = require("@sprucelabs/test-utils");
8
8
  const just_clone_1 = __importDefault(require("just-clone"));
9
9
  class CalendarToolTestFactory {
10
10
  static Tool(stateMachine, vcId, options) {
@@ -27,7 +27,7 @@ class CalendarToolTestFactory {
27
27
  void stateMachine.on('did-update-context', () => {
28
28
  return vc.handleUpdateContext(stateMachine.getContext());
29
29
  });
30
- test_1.assert.isFunction(vc.handleUpdateContext, `You need to make sure your card view controller implements the CalendarTool interface!`);
30
+ test_utils_1.assert.isFunction(vc.handleUpdateContext, `You need to make sure your card view controller implements the CalendarTool interface!`);
31
31
  return vc;
32
32
  }
33
33
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sprucelabs/spruce-calendar-components",
3
3
  "description": "Calendar components for working with calendars and Sprucebot.",
4
- "version": "22.8.12",
4
+ "version": "22.8.13",
5
5
  "skill": {
6
6
  "namespace": "calendar"
7
7
  },
@@ -179,7 +179,7 @@
179
179
  "@sprucelabs/mercury-client": "latest",
180
180
  "@sprucelabs/schema": "latest",
181
181
  "@sprucelabs/spruce-skill-utils": "latest",
182
- "@sprucelabs/test": "latest",
182
+ "@sprucelabs/test-utils": "latest",
183
183
  "@sprucelabs/data-stores": "latest",
184
184
  "@sprucelabs/calendar-utils": "latest",
185
185
  "@sprucelabs/heartwood-view-controllers": "latest",