@sprucelabs/spruce-test-fixtures 52.4.6 → 52.4.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.
@@ -6,7 +6,6 @@ export default class FakeDecoratorTest extends AbstractFakeDecoratorTest {
6
6
  protected static doesNotThrowWhenMissingPhone(): void;
7
7
  protected static throwsWhenInvalidPhone(): void;
8
8
  protected static fakingLoginSetsRequireLocalListeners(): Promise<void>;
9
- protected static setsOwnerToClass(): Promise<void>;
10
9
  protected static getPersonThrowsWithoutPersonId(): Promise<void>;
11
10
  protected static fakesGetPerson(): Promise<void>;
12
11
  protected static getPersonThrowsWithBadId(): Promise<void>;
@@ -57,10 +57,6 @@ class FakeDecoratorTest extends AbstractFakeDecoratorTest_1.default {
57
57
  await this.fakeLogin(constants_1.DEMO_NUMBER);
58
58
  test_utils_1.assert.isTrue(mercury_client_1.MercuryTestClient.getShouldRequireLocalListeners());
59
59
  }
60
- static async setsOwnerToClass() {
61
- const auth = await this.fakeLoginAndGetAuth();
62
- test_utils_1.assert.isEqualDeep(this.fakedPerson, auth.person);
63
- }
64
60
  static async getPersonThrowsWithoutPersonId() {
65
61
  await this.fakeLogin();
66
62
  await test_utils_1.assert.doesThrowAsync(() => this.client.emitAndFlattenResponses('get-person::v2020_12_25', {
@@ -330,9 +326,6 @@ __decorate([
330
326
  __decorate([
331
327
  (0, test_utils_1.test)()
332
328
  ], FakeDecoratorTest, "fakingLoginSetsRequireLocalListeners", null);
333
- __decorate([
334
- test_utils_1.test.skip()
335
- ], FakeDecoratorTest, "setsOwnerToClass", null);
336
329
  __decorate([
337
330
  (0, test_utils_1.test)()
338
331
  ], FakeDecoratorTest, "getPersonThrowsWithoutPersonId", null);
@@ -28,7 +28,6 @@ export default class ViewFixtureTest extends AbstractSpruceFixtureTest {
28
28
  protected static canGetAuthenticatorInstance(): void;
29
29
  protected static activeRecordThrowsByDefault(): void;
30
30
  protected static activeRecordThrowReset(): void;
31
- protected static patchesFormsToThrow(): Promise<void>;
32
31
  protected static loggingInWithViewFixtureSetsProxyTokenForSkill(): Promise<void>;
33
32
  protected static proxyGeneratorIsResetWhenDifferentPersonLogsIn(): Promise<void>;
34
33
  protected static sameProxyAcrossFixturesWithSameNumber(): Promise<void>;
@@ -285,17 +285,6 @@ let ViewFixtureTest = class ViewFixtureTest extends AbstractSpruceFixtureTest_1.
285
285
  //@ts-ignore
286
286
  test_utils_1.assert.isTrue(heartwood_view_controllers_1.ActiveRecordListViewController.shouldThrowOnResponseError);
287
287
  }
288
- static async patchesFormsToThrow() {
289
- const viewFixture = this.Fixture('view', {
290
- controllerMap: {},
291
- });
292
- const formVc = viewFixture.Controller('form', (0, heartwood_view_controllers_1.buildForm)({
293
- id: 'test',
294
- schema: { id: 'test', fields: {} },
295
- sections: [],
296
- }));
297
- await test_utils_1.assert.doesThrowAsync(() => formVc.submit());
298
- }
299
288
  static async loggingInWithViewFixtureSetsProxyTokenForSkill() {
300
289
  const { client, token, generator } = await this.loginAndGetProxy();
301
290
  test_utils_1.assert.isTruthy(token);
@@ -548,9 +537,6 @@ __decorate([
548
537
  __decorate([
549
538
  (0, test_utils_1.test)()
550
539
  ], ViewFixtureTest, "activeRecordThrowReset", null);
551
- __decorate([
552
- test_utils_1.test.skip()
553
- ], ViewFixtureTest, "patchesFormsToThrow", null);
554
540
  __decorate([
555
541
  (0, test_utils_1.test)()
556
542
  ], ViewFixtureTest, "loggingInWithViewFixtureSetsProxyTokenForSkill", null);
@@ -6,7 +6,6 @@ export default class FakeDecoratorTest extends AbstractFakeDecoratorTest {
6
6
  protected static doesNotThrowWhenMissingPhone(): void;
7
7
  protected static throwsWhenInvalidPhone(): void;
8
8
  protected static fakingLoginSetsRequireLocalListeners(): Promise<void>;
9
- protected static setsOwnerToClass(): Promise<void>;
10
9
  protected static getPersonThrowsWithoutPersonId(): Promise<void>;
11
10
  protected static fakesGetPerson(): Promise<void>;
12
11
  protected static getPersonThrowsWithBadId(): Promise<void>;
@@ -45,12 +45,6 @@ export default class FakeDecoratorTest extends AbstractFakeDecoratorTest {
45
45
  assert.isTrue(MercuryTestClient.getShouldRequireLocalListeners());
46
46
  });
47
47
  }
48
- static setsOwnerToClass() {
49
- return __awaiter(this, void 0, void 0, function* () {
50
- const auth = yield this.fakeLoginAndGetAuth();
51
- assert.isEqualDeep(this.fakedPerson, auth.person);
52
- });
53
- }
54
48
  static getPersonThrowsWithoutPersonId() {
55
49
  return __awaiter(this, void 0, void 0, function* () {
56
50
  yield this.fakeLogin();
@@ -392,9 +386,6 @@ __decorate([
392
386
  __decorate([
393
387
  test()
394
388
  ], FakeDecoratorTest, "fakingLoginSetsRequireLocalListeners", null);
395
- __decorate([
396
- test.skip()
397
- ], FakeDecoratorTest, "setsOwnerToClass", null);
398
389
  __decorate([
399
390
  test()
400
391
  ], FakeDecoratorTest, "getPersonThrowsWithoutPersonId", null);
@@ -28,7 +28,6 @@ export default class ViewFixtureTest extends AbstractSpruceFixtureTest {
28
28
  protected static canGetAuthenticatorInstance(): void;
29
29
  protected static activeRecordThrowsByDefault(): void;
30
30
  protected static activeRecordThrowReset(): void;
31
- protected static patchesFormsToThrow(): Promise<void>;
32
31
  protected static loggingInWithViewFixtureSetsProxyTokenForSkill(): Promise<void>;
33
32
  protected static proxyGeneratorIsResetWhenDifferentPersonLogsIn(): Promise<void>;
34
33
  protected static sameProxyAcrossFixturesWithSameNumber(): Promise<void>;
@@ -13,7 +13,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
13
13
  step((generator = generator.apply(thisArg, _arguments || [])).next());
14
14
  });
15
15
  };
16
- import { AbstractSkillViewController, ActiveRecordListViewController, AuthenticatorImpl, buildForm, formAssert, SwipeViewControllerImpl, vcAssert, } from '@sprucelabs/heartwood-view-controllers';
16
+ import { AbstractSkillViewController, ActiveRecordListViewController, AuthenticatorImpl, formAssert, SwipeViewControllerImpl, vcAssert, } from '@sprucelabs/heartwood-view-controllers';
17
17
  import { formatPhoneNumber } from '@sprucelabs/schema';
18
18
  import { eventResponseUtil } from '@sprucelabs/spruce-event-utils';
19
19
  import { assert, test } from '@sprucelabs/test-utils';
@@ -322,19 +322,6 @@ let ViewFixtureTest = class ViewFixtureTest extends AbstractSpruceFixtureTest {
322
322
  //@ts-ignore
323
323
  assert.isTrue(ActiveRecordListViewController.shouldThrowOnResponseError);
324
324
  }
325
- static patchesFormsToThrow() {
326
- return __awaiter(this, void 0, void 0, function* () {
327
- const viewFixture = this.Fixture('view', {
328
- controllerMap: {},
329
- });
330
- const formVc = viewFixture.Controller('form', buildForm({
331
- id: 'test',
332
- schema: { id: 'test', fields: {} },
333
- sections: [],
334
- }));
335
- yield assert.doesThrowAsync(() => formVc.submit());
336
- });
337
- }
338
325
  static loggingInWithViewFixtureSetsProxyTokenForSkill() {
339
326
  return __awaiter(this, void 0, void 0, function* () {
340
327
  const { client, token, generator } = yield this.loginAndGetProxy();
@@ -627,9 +614,6 @@ __decorate([
627
614
  __decorate([
628
615
  test()
629
616
  ], ViewFixtureTest, "activeRecordThrowReset", null);
630
- __decorate([
631
- test.skip()
632
- ], ViewFixtureTest, "patchesFormsToThrow", null);
633
617
  __decorate([
634
618
  test()
635
619
  ], ViewFixtureTest, "loggingInWithViewFixtureSetsProxyTokenForSkill", null);
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "@sprucelabs/spruce-test-fixtures"
14
14
  ]
15
15
  },
16
- "version": "52.4.6",
16
+ "version": "52.4.7",
17
17
  "files": [
18
18
  "build/**/*",
19
19
  "!build/__tests__",
@@ -71,7 +71,7 @@
71
71
  "@sprucelabs/schema": "^28.5.85",
72
72
  "@sprucelabs/spruce-core-schemas": "^35.1.90",
73
73
  "@sprucelabs/spruce-event-utils": "^30.0.20",
74
- "@sprucelabs/spruce-skill-booter": "^52.4.6",
74
+ "@sprucelabs/spruce-skill-booter": "^52.4.7",
75
75
  "@sprucelabs/spruce-skill-utils": "^28.1.15",
76
76
  "@sprucelabs/test-utils": "^3.2.73",
77
77
  "dotenv": "^16.0.3",
@@ -131,5 +131,5 @@
131
131
  ]
132
132
  ]
133
133
  },
134
- "gitHead": "73a9e138b4ccfd3c4502817e7c74ccdcbf256461"
134
+ "gitHead": "90258faf7ed02c5b5b1f03a24fe7d032aa83c7a8"
135
135
  }