@sprucelabs/spruce-test-fixtures 61.1.35 → 62.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. package/build/.spruce/errors/errors.types.d.ts +30 -27
  2. package/build/.spruce/errors/errors.types.js +0 -2
  3. package/build/.spruce/errors/options.types.d.ts +2 -2
  4. package/build/.spruce/errors/spruceTestFixtures/fakeEventError.schema.js +3 -3
  5. package/build/.spruce/errors/spruceTestFixtures/invalidFixture.schema.js +5 -5
  6. package/build/.spruce/errors/spruceTestFixtures/invalidScopeRequest.schema.js +10 -5
  7. package/build/.spruce/errors/spruceTestFixtures/invalidTarget.schema.js +1 -1
  8. package/build/.spruce/errors/spruceTestFixtures/invalidViewController.schema.js +5 -5
  9. package/build/.spruce/errors/spruceTestFixtures/notFound.schema.js +1 -1
  10. package/build/.spruce/errors/spruceTestFixtures/scopeRequirementsNotMet.schema.js +1 -1
  11. package/build/.spruce/errors/spruceTestFixtures/skillNotFound.schema.js +3 -3
  12. package/build/.spruce/errors/spruceTestFixtures/unknownViewControllerError.schema.js +5 -5
  13. package/build/.spruce/schemas/fields/fields.types.d.ts +1 -1
  14. package/build/.spruce/schemas/schemas.types.d.ts +7 -7
  15. package/build/.spruce/schemas/schemas.types.js +0 -2
  16. package/build/.spruce/schemas/spruceTestFixtures/v2021_07_19/testRouterEmitPayload.schema.js +9 -7
  17. package/build/ClientProxyDecorator.js +6 -2
  18. package/build/__tests__/behavioral/OrganizationFixture.test.js +3 -1
  19. package/build/__tests__/behavioral/PhoneNumberIncrementor.test.js +4 -4
  20. package/build/__tests__/behavioral/faking/AuthenticatingAsAPerson.test.js +3 -1
  21. package/build/__tests__/behavioral/faking/FakeDecorator.test.js +5 -2
  22. package/build/__tests__/behavioral/faking/WhoAmI.test.js +3 -1
  23. package/build/__tests__/behavioral/seeding/SeedingData.test.js +3 -3
  24. package/build/__tests__/behavioral/seeding/UsingDecoratorsToInstallSkills.test.js +3 -1
  25. package/build/__tests__/behavioral/views/ViewFixture.test.js +3 -1
  26. package/build/__tests__/testDirsAndFiles/one-good-store-skill/build/.spruce/stores/stores.js +1 -1
  27. package/build/__tests__/testDirsAndFiles/one-good-store-skill/build/stores/Good.store.js +3 -3
  28. package/build/__tests__/testDirsAndFiles/plugins1/build/.spruce/views/views.d.ts +1 -1
  29. package/build/__tests__/testDirsAndFiles/plugins2/build/.spruce/views/views.d.ts +1 -1
  30. package/build/__tests__/testDirsAndFiles/skill/build/skillViewControllers/Book.svc.d.ts +1 -1
  31. package/build/__tests__/testDirsAndFiles/skill/build/skillViewControllers/Spy.svc.d.ts +1 -1
  32. package/build/__tests__/testDirsAndFiles/skill/src/.spruce/views/views.js +2 -1
  33. package/build/errors/SpruceError.d.ts +1 -1
  34. package/build/esm/.spruce/errors/errors.types.d.ts +30 -27
  35. package/build/esm/.spruce/errors/errors.types.js +0 -2
  36. package/build/esm/.spruce/errors/options.types.d.ts +2 -2
  37. package/build/esm/.spruce/schemas/schemas.types.d.ts +7 -7
  38. package/build/esm/.spruce/schemas/schemas.types.js +0 -2
  39. package/build/esm/.spruce/schemas/spruceTestFixtures/v2021_07_19/testRouterEmitPayload.schema.js +9 -7
  40. package/build/esm/ClientProxyDecorator.js +6 -2
  41. package/build/esm/__tests__/behavioral/OrganizationFixture.test.js +3 -1
  42. package/build/esm/__tests__/behavioral/PhoneNumberIncrementor.test.js +4 -4
  43. package/build/esm/__tests__/behavioral/faking/AuthenticatingAsAPerson.test.js +3 -1
  44. package/build/esm/__tests__/behavioral/faking/FakeDecorator.test.js +5 -2
  45. package/build/esm/__tests__/behavioral/faking/WhoAmI.test.js +3 -1
  46. package/build/esm/__tests__/behavioral/seeding/SeedingData.test.js +3 -3
  47. package/build/esm/__tests__/behavioral/seeding/UsingDecoratorsToInstallSkills.test.js +3 -1
  48. package/build/esm/__tests__/behavioral/views/ViewFixture.test.js +3 -1
  49. package/build/esm/__tests__/testDirsAndFiles/one-good-store-skill/build/stores/Good.store.js +3 -3
  50. package/build/esm/__tests__/testDirsAndFiles/skill/build/skillViewControllers/Book.svc.d.ts +1 -1
  51. package/build/esm/__tests__/testDirsAndFiles/skill/build/skillViewControllers/Spy.svc.d.ts +1 -1
  52. package/build/esm/__tests__/testDirsAndFiles/skill/build/skillViewControllers/Spy.svc.js +1 -1
  53. package/build/esm/errors/SpruceError.d.ts +1 -1
  54. package/build/esm/index.d.ts +1 -1
  55. package/build/esm/tests/decorators/fake.js +16 -6
  56. package/build/esm/tests/fixtures/FixtureFactory.js +4 -2
  57. package/build/esm/tests/fixtures/MercuryFixture.js +5 -3
  58. package/build/esm/tests/fixtures/PersonFixture.js +2 -1
  59. package/build/esm/tests/fixtures/ViewFixture.js +2 -1
  60. package/build/index.d.ts +1 -1
  61. package/build/tests/decorators/fake.js +16 -6
  62. package/build/tests/fixtures/FixtureFactory.js +4 -2
  63. package/build/tests/fixtures/MercuryFixture.js +5 -3
  64. package/build/tests/fixtures/PersonFixture.js +2 -1
  65. package/build/tests/fixtures/ViewFixture.js +2 -1
  66. package/package.json +32 -32
@@ -2,8 +2,8 @@ import { default as SchemaEntity } from '@sprucelabs/schema';
2
2
  import * as SpruceSchema from '@sprucelabs/schema';
3
3
  export declare namespace SpruceErrors.SpruceTestFixtures {
4
4
  interface UnknownViewControllerError {
5
- 'id'?: string | undefined | null;
6
- 'name'?: string | undefined | null;
5
+ id?: string | undefined | null;
6
+ name?: string | undefined | null;
7
7
  }
8
8
  interface UnknownViewControllerErrorSchema extends SpruceSchema.Schema {
9
9
  id: 'unknownViewControllerError';
@@ -11,12 +11,12 @@ export declare namespace SpruceErrors.SpruceTestFixtures {
11
11
  name: 'Unkown view controller error';
12
12
  fields: {
13
13
  /** . */
14
- 'id': {
14
+ id: {
15
15
  type: 'text';
16
16
  options: undefined;
17
17
  };
18
18
  /** . */
19
- 'name': {
19
+ name: {
20
20
  type: 'text';
21
21
  options: undefined;
22
22
  };
@@ -26,7 +26,7 @@ export declare namespace SpruceErrors.SpruceTestFixtures {
26
26
  }
27
27
  export declare namespace SpruceErrors.SpruceTestFixtures {
28
28
  interface SkillNotFound {
29
- 'slug': string;
29
+ slug: string;
30
30
  }
31
31
  interface SkillNotFoundSchema extends SpruceSchema.Schema {
32
32
  id: 'skillNotFound';
@@ -34,7 +34,7 @@ export declare namespace SpruceErrors.SpruceTestFixtures {
34
34
  name: 'Skill not found';
35
35
  fields: {
36
36
  /** . */
37
- 'slug': {
37
+ slug: {
38
38
  type: 'text';
39
39
  isRequired: true;
40
40
  options: undefined;
@@ -67,8 +67,8 @@ export declare namespace SpruceErrors.SpruceTestFixtures {
67
67
  }
68
68
  export declare namespace SpruceErrors.SpruceTestFixtures {
69
69
  interface InvalidViewController {
70
- 'name'?: string | undefined | null;
71
- 'id'?: string | undefined | null;
70
+ name?: string | undefined | null;
71
+ id?: string | undefined | null;
72
72
  }
73
73
  interface InvalidViewControllerSchema extends SpruceSchema.Schema {
74
74
  id: 'invalidViewController';
@@ -76,12 +76,12 @@ export declare namespace SpruceErrors.SpruceTestFixtures {
76
76
  name: 'Invalid view controller';
77
77
  fields: {
78
78
  /** . */
79
- 'name': {
79
+ name: {
80
80
  type: 'text';
81
81
  options: undefined;
82
82
  };
83
83
  /** . */
84
- 'id': {
84
+ id: {
85
85
  type: 'text';
86
86
  options: undefined;
87
87
  };
@@ -102,8 +102,8 @@ export declare namespace SpruceErrors.SpruceTestFixtures {
102
102
  }
103
103
  export declare namespace SpruceErrors.SpruceTestFixtures {
104
104
  interface InvalidScopeRequest {
105
- 'flags': string[];
106
- 'attemptedToGet': ("location" | "organization");
105
+ flags: string[];
106
+ attemptedToGet: 'location' | 'organization';
107
107
  }
108
108
  interface InvalidScopeRequestSchema extends SpruceSchema.Schema {
109
109
  id: 'invalidScopeRequest';
@@ -111,24 +111,27 @@ export declare namespace SpruceErrors.SpruceTestFixtures {
111
111
  name: '';
112
112
  fields: {
113
113
  /** . */
114
- 'flags': {
114
+ flags: {
115
115
  type: 'text';
116
116
  isRequired: true;
117
117
  isArray: true;
118
118
  options: undefined;
119
119
  };
120
120
  /** . */
121
- 'attemptedToGet': {
121
+ attemptedToGet: {
122
122
  type: 'select';
123
123
  isRequired: true;
124
124
  options: {
125
- choices: [{
126
- "value": "location";
127
- "label": "Location";
128
- }, {
129
- "value": "organization";
130
- "label": "Organization";
131
- }];
125
+ choices: [
126
+ {
127
+ value: 'location';
128
+ label: 'Location';
129
+ },
130
+ {
131
+ value: 'organization';
132
+ label: 'Organization';
133
+ }
134
+ ];
132
135
  };
133
136
  };
134
137
  };
@@ -137,8 +140,8 @@ export declare namespace SpruceErrors.SpruceTestFixtures {
137
140
  }
138
141
  export declare namespace SpruceErrors.SpruceTestFixtures {
139
142
  interface InvalidFixture {
140
- 'suppliedName': string;
141
- 'validNames': string[];
143
+ suppliedName: string;
144
+ validNames: string[];
142
145
  }
143
146
  interface InvalidFixtureSchema extends SpruceSchema.Schema {
144
147
  id: 'invalidFixture';
@@ -146,13 +149,13 @@ export declare namespace SpruceErrors.SpruceTestFixtures {
146
149
  name: 'Invalid factory';
147
150
  fields: {
148
151
  /** . */
149
- 'suppliedName': {
152
+ suppliedName: {
150
153
  type: 'text';
151
154
  isRequired: true;
152
155
  options: undefined;
153
156
  };
154
157
  /** . */
155
- 'validNames': {
158
+ validNames: {
156
159
  type: 'text';
157
160
  isRequired: true;
158
161
  isArray: true;
@@ -164,7 +167,7 @@ export declare namespace SpruceErrors.SpruceTestFixtures {
164
167
  }
165
168
  export declare namespace SpruceErrors.SpruceTestFixtures {
166
169
  interface FakeEventError {
167
- 'fqen': string;
170
+ fqen: string;
168
171
  }
169
172
  interface FakeEventErrorSchema extends SpruceSchema.Schema {
170
173
  id: 'fakeEventError';
@@ -172,7 +175,7 @@ export declare namespace SpruceErrors.SpruceTestFixtures {
172
175
  name: 'Fake event error';
173
176
  fields: {
174
177
  /** . */
175
- 'fqen': {
178
+ fqen: {
176
179
  type: 'text';
177
180
  isRequired: true;
178
181
  options: undefined;
@@ -1,4 +1,2 @@
1
1
  "use strict";
2
- /* eslint-disable @typescript-eslint/no-namespace */
3
- /* eslint-disable no-redeclare */
4
2
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,5 @@
1
- import { SpruceErrors } from "./errors.types";
2
- import { ErrorOptions as ISpruceErrorOptions } from "@sprucelabs/error";
1
+ import { ErrorOptions as ISpruceErrorOptions } from '@sprucelabs/error';
2
+ import { SpruceErrors } from './errors.types';
3
3
  export interface UnknownViewControllerErrorErrorOptions extends SpruceErrors.SpruceTestFixtures.UnknownViewControllerError, ISpruceErrorOptions {
4
4
  code: 'UNKNOWN_VIEW_CONTROLLER_ERROR';
5
5
  }
@@ -7,12 +7,12 @@ const fakeEventErrorSchema = {
7
7
  name: 'Fake event error',
8
8
  fields: {
9
9
  /** . */
10
- 'fqen': {
10
+ fqen: {
11
11
  type: 'text',
12
12
  isRequired: true,
13
- options: undefined
13
+ options: undefined,
14
14
  },
15
- }
15
+ },
16
16
  };
17
17
  schema_1.SchemaRegistry.getInstance().trackSchema(fakeEventErrorSchema);
18
18
  exports.default = fakeEventErrorSchema;
@@ -7,19 +7,19 @@ const invalidFixtureSchema = {
7
7
  name: 'Invalid factory',
8
8
  fields: {
9
9
  /** . */
10
- 'suppliedName': {
10
+ suppliedName: {
11
11
  type: 'text',
12
12
  isRequired: true,
13
- options: undefined
13
+ options: undefined,
14
14
  },
15
15
  /** . */
16
- 'validNames': {
16
+ validNames: {
17
17
  type: 'text',
18
18
  isRequired: true,
19
19
  isArray: true,
20
- options: undefined
20
+ options: undefined,
21
21
  },
22
- }
22
+ },
23
23
  };
24
24
  schema_1.SchemaRegistry.getInstance().trackSchema(invalidFixtureSchema);
25
25
  exports.default = invalidFixtureSchema;
@@ -7,19 +7,24 @@ const invalidScopeRequestSchema = {
7
7
  name: '',
8
8
  fields: {
9
9
  /** . */
10
- 'flags': {
10
+ flags: {
11
11
  type: 'text',
12
12
  isRequired: true,
13
13
  isArray: true,
14
- options: undefined
14
+ options: undefined,
15
15
  },
16
16
  /** . */
17
- 'attemptedToGet': {
17
+ attemptedToGet: {
18
18
  type: 'select',
19
19
  isRequired: true,
20
- options: { choices: [{ "value": "location", "label": "Location" }, { "value": "organization", "label": "Organization" }], }
20
+ options: {
21
+ choices: [
22
+ { value: 'location', label: 'Location' },
23
+ { value: 'organization', label: 'Organization' },
24
+ ],
25
+ },
21
26
  },
22
- }
27
+ },
23
28
  };
24
29
  schema_1.SchemaRegistry.getInstance().trackSchema(invalidScopeRequestSchema);
25
30
  exports.default = invalidScopeRequestSchema;
@@ -5,7 +5,7 @@ const invalidTargetSchema = {
5
5
  id: 'invalidTarget',
6
6
  namespace: 'SpruceTestFixtures',
7
7
  name: 'invalid target',
8
- fields: {}
8
+ fields: {},
9
9
  };
10
10
  schema_1.SchemaRegistry.getInstance().trackSchema(invalidTargetSchema);
11
11
  exports.default = invalidTargetSchema;
@@ -7,16 +7,16 @@ const invalidViewControllerSchema = {
7
7
  name: 'Invalid view controller',
8
8
  fields: {
9
9
  /** . */
10
- 'name': {
10
+ name: {
11
11
  type: 'text',
12
- options: undefined
12
+ options: undefined,
13
13
  },
14
14
  /** . */
15
- 'id': {
15
+ id: {
16
16
  type: 'text',
17
- options: undefined
17
+ options: undefined,
18
18
  },
19
- }
19
+ },
20
20
  };
21
21
  schema_1.SchemaRegistry.getInstance().trackSchema(invalidViewControllerSchema);
22
22
  exports.default = invalidViewControllerSchema;
@@ -5,7 +5,7 @@ const notFoundSchema = {
5
5
  id: 'notFound',
6
6
  namespace: 'SpruceTestFixtures',
7
7
  name: 'not found',
8
- fields: {}
8
+ fields: {},
9
9
  };
10
10
  schema_1.SchemaRegistry.getInstance().trackSchema(notFoundSchema);
11
11
  exports.default = notFoundSchema;
@@ -5,7 +5,7 @@ const scopeRequirementsNotMetSchema = {
5
5
  id: 'scopeRequirementsNotMet',
6
6
  namespace: 'SpruceTestFixtures',
7
7
  name: 'scope requirements not met',
8
- fields: {}
8
+ fields: {},
9
9
  };
10
10
  schema_1.SchemaRegistry.getInstance().trackSchema(scopeRequirementsNotMetSchema);
11
11
  exports.default = scopeRequirementsNotMetSchema;
@@ -7,12 +7,12 @@ const skillNotFoundSchema = {
7
7
  name: 'Skill not found',
8
8
  fields: {
9
9
  /** . */
10
- 'slug': {
10
+ slug: {
11
11
  type: 'text',
12
12
  isRequired: true,
13
- options: undefined
13
+ options: undefined,
14
14
  },
15
- }
15
+ },
16
16
  };
17
17
  schema_1.SchemaRegistry.getInstance().trackSchema(skillNotFoundSchema);
18
18
  exports.default = skillNotFoundSchema;
@@ -7,16 +7,16 @@ const unknownViewControllerErrorSchema = {
7
7
  name: 'Unkown view controller error',
8
8
  fields: {
9
9
  /** . */
10
- 'id': {
10
+ id: {
11
11
  type: 'text',
12
- options: undefined
12
+ options: undefined,
13
13
  },
14
14
  /** . */
15
- 'name': {
15
+ name: {
16
16
  type: 'text',
17
- options: undefined
17
+ options: undefined,
18
18
  },
19
- }
19
+ },
20
20
  };
21
21
  schema_1.SchemaRegistry.getInstance().trackSchema(unknownViewControllerErrorSchema);
22
22
  exports.default = unknownViewControllerErrorSchema;
@@ -1 +1 @@
1
- export { FieldDefinitions, FieldDefinitionMap, FieldValueTypeGeneratorMap, FieldMap } from '@sprucelabs/schema';
1
+ export { FieldDefinitions, FieldDefinitionMap, FieldValueTypeGeneratorMap, FieldMap, } from '@sprucelabs/schema';
@@ -1,13 +1,13 @@
1
1
  export { SpruceSchemas } from '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schemas.types';
2
+ import * as HeartwoodViewController from '@sprucelabs/heartwood-view-controllers';
2
3
  import { default as SchemaEntity } from '@sprucelabs/schema';
3
4
  import * as SpruceSchema from '@sprucelabs/schema';
4
- import * as HeartwoodViewController from "@sprucelabs/heartwood-view-controllers";
5
5
  declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schemas.types' {
6
6
  namespace SpruceSchemas.SpruceTestFixtures.v2021_07_19 {
7
7
  interface TestRouterEmitPayload {
8
- 'id': string;
9
- 'vc': (HeartwoodViewController.SkillViewController);
10
- 'args'?: (Record<string, any>) | undefined | null;
8
+ id: string;
9
+ vc: HeartwoodViewController.SkillViewController;
10
+ args?: Record<string, any> | undefined | null;
11
11
  }
12
12
  interface TestRouterEmitPayloadSchema extends SpruceSchema.Schema {
13
13
  id: 'testRouterEmitPayload';
@@ -16,13 +16,13 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
16
16
  name: 'Test Router Emit payload';
17
17
  fields: {
18
18
  /** . */
19
- 'id': {
19
+ id: {
20
20
  type: 'text';
21
21
  isRequired: true;
22
22
  options: undefined;
23
23
  };
24
24
  /** . */
25
- 'vc': {
25
+ vc: {
26
26
  type: 'raw';
27
27
  isRequired: true;
28
28
  options: {
@@ -30,7 +30,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
30
30
  };
31
31
  };
32
32
  /** . */
33
- 'args': {
33
+ args: {
34
34
  type: 'raw';
35
35
  options: {
36
36
  valueType: `Record<string, any>`;
@@ -1,4 +1,2 @@
1
1
  "use strict";
2
- /* eslint-disable @typescript-eslint/no-namespace */
3
- /* eslint-disable no-redeclare */
4
2
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -8,23 +8,25 @@ const testRouterEmitPayloadSchema = {
8
8
  name: 'Test Router Emit payload',
9
9
  fields: {
10
10
  /** . */
11
- 'id': {
11
+ id: {
12
12
  type: 'text',
13
13
  isRequired: true,
14
- options: undefined
14
+ options: undefined,
15
15
  },
16
16
  /** . */
17
- 'vc': {
17
+ vc: {
18
18
  type: 'raw',
19
19
  isRequired: true,
20
- options: { valueType: `HeartwoodViewController.SkillViewController`, }
20
+ options: {
21
+ valueType: `HeartwoodViewController.SkillViewController`,
22
+ },
21
23
  },
22
24
  /** . */
23
- 'args': {
25
+ args: {
24
26
  type: 'raw',
25
- options: { valueType: `Record<string, any>`, }
27
+ options: { valueType: `Record<string, any>` },
26
28
  },
27
- }
29
+ },
28
30
  };
29
31
  schema_1.SchemaRegistry.getInstance().trackSchema(testRouterEmitPayloadSchema);
30
32
  exports.default = testRouterEmitPayloadSchema;
@@ -27,9 +27,13 @@ class ClientProxyDecorator {
27
27
  emit: async (eventName, targetAndPayload, cb) => {
28
28
  let builtTp = await this.mixinProxyToken(token, targetAndPayload);
29
29
  return client.emit(eventName, builtTp, cb);
30
- },
30
+ }, emitAndFlattenResponses: async (
31
31
  //@ts-ignore
32
- emitAndFlattenResponses: async (eventName, targetAndPayload, cb) => {
32
+ eventName,
33
+ //@ts-ignore
34
+ targetAndPayload,
35
+ //@ts-ignore
36
+ cb) => {
33
37
  let builtTp = await this.mixinProxyToken(token, targetAndPayload);
34
38
  return client.emitAndFlattenResponses(eventName, builtTp, cb);
35
39
  } });
@@ -186,7 +186,9 @@ let OrganizationFixtureTest = class OrganizationFixtureTest extends AbstractSpru
186
186
  }
187
187
  static canPassPersonFixture() {
188
188
  const personFixture = this.Fixture('person');
189
- const orgFixture = this.Fixture('organization', { people: personFixture });
189
+ const orgFixture = this.Fixture('organization', {
190
+ people: personFixture,
191
+ });
190
192
  //@ts-ignore
191
193
  test_utils_1.assert.isEqual(orgFixture.people, personFixture);
192
194
  }
@@ -45,7 +45,9 @@ class PhoneNumberIncrementorTest extends __1.AbstractSpruceFixtureTest {
45
45
  });
46
46
  }
47
47
  static async generatesExpectedNumbers(expected) {
48
- const numbers = await this.generate({ totalToGenerate: expected.length });
48
+ const numbers = await this.generate({
49
+ totalToGenerate: expected.length,
50
+ });
49
51
  test_utils_1.assert.isEqualDeep(numbers, expected);
50
52
  }
51
53
  static async generateNumbersFromDifferentStartNumber() {
@@ -66,9 +68,7 @@ __decorate([
66
68
  'totalToGenerate',
67
69
  ]),
68
70
  (0, test_utils_1.test)('throws if totalToGenerate options missing', { startingPhone: '234234' }, ['totalToGenerate']),
69
- (0, test_utils_1.test)('throws if startingPhone options missing', { totalToGenerate: 1234 }, [
70
- 'startingPhone',
71
- ])
71
+ (0, test_utils_1.test)('throws if startingPhone options missing', { totalToGenerate: 1234 }, ['startingPhone'])
72
72
  ], PhoneNumberIncrementorTest, "throwsWithMissingOptions", null);
73
73
  __decorate([
74
74
  (0, test_utils_1.test)('throws if phone is 234234', '234234'),
@@ -20,7 +20,9 @@ let AuthenticatingAsAPersonTest = class AuthenticatingAsAPersonTest extends Abst
20
20
  }
21
21
  static async canAuthenticateAsAPerson() {
22
22
  const { token, person } = await this.people.loginAsDemoPerson();
23
- const { person: person2 } = await fake_1.default.getClient().authenticate({ token });
23
+ const { person: person2 } = await fake_1.default
24
+ .getClient()
25
+ .authenticate({ token });
24
26
  test_utils_1.assert.isEqualDeep(person, person2);
25
27
  }
26
28
  static async authReturnsExpectedPerson() {
@@ -191,7 +191,8 @@ class FakeDecoratorTest extends AbstractFakeDecoratorTest_1.default {
191
191
  const [{ roles }] = await this.listRolesForPerson(personId);
192
192
  test_utils_1.assert.isEqualDeep(roles.sort((a, b) => (a.id > b.id ? 1 : -1)), this.fakedRoles
193
193
  .filter((r) => r.base === 'owner' ||
194
- (r.base === 'teammate' && r.organizationId === organizationId))
194
+ (r.base === 'teammate' &&
195
+ r.organizationId === organizationId))
195
196
  .sort((a, b) => (a.id > b.id ? 1 : -1)));
196
197
  }
197
198
  static async canSyncTeammates(target, total) {
@@ -248,7 +249,9 @@ class FakeDecoratorTest extends AbstractFakeDecoratorTest_1.default {
248
249
  });
249
250
  }
250
251
  static async callingRegisterProxyTokenOnAnonClientDoesNotThrough() {
251
- const client = await this.mercury.connectToApi({ shouldReUseClient: false });
252
+ const client = await this.mercury.connectToApi({
253
+ shouldReUseClient: false,
254
+ });
252
255
  await client.emitAndFlattenResponses('register-proxy-token::v2020_12_25');
253
256
  }
254
257
  static async fakeLoginAndListRoles(orgIdx) {
@@ -29,7 +29,9 @@ let WhoAmITest = class WhoAmITest extends AbstractSpruceFixtureTest_1.default {
29
29
  static async canWhoAmI() {
30
30
  this.auth = this.views.getAuthenticator();
31
31
  await __1.fake.getClient().emitAndFlattenResponses('whoami::v2020_12_25');
32
- this.views.getAuthenticator().addEventListener('did-login', async () => {
32
+ this.views
33
+ .getAuthenticator()
34
+ .addEventListener('did-login', async () => {
33
35
  this.didLoginCount++;
34
36
  });
35
37
  }
@@ -87,8 +87,9 @@ let SeedingDataTest = class SeedingDataTest extends AbstractSpruceFixtureTest_1.
87
87
  await this.assertOnlyOneOrgExists();
88
88
  }
89
89
  static async throwsWhenSeedingWithoutCount() {
90
+ const err = await test_utils_1.assert.doesThrowAsync(() =>
90
91
  //@ts-ignore
91
- const err = await test_utils_1.assert.doesThrowAsync(() => this.fixture.seedAccount({}));
92
+ this.fixture.seedAccount({}));
92
93
  test_utils_2.errorAssert.assertError(err, 'MISSING_PARAMETERS', {
93
94
  parameters: ['totalLocations'],
94
95
  });
@@ -121,9 +122,8 @@ let SeedingDataTest = class SeedingDataTest extends AbstractSpruceFixtureTest_1.
121
122
  var _a;
122
123
  const _b = await this.seedLocations(Object.assign({ totalLocations: 1, startingPhone: constants_1.DEMO_NUMBER_SEED_FIXTURE_STARTING_PHONE }, options)), { locations } = _b, rest = __rest(_b, ["locations"]);
123
124
  const withoutOwner = await this.listPeople(locations[0], base);
124
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
125
125
  const withoutOwnerCleaned = withoutOwner.map((_a) => {
126
- var { roleIds } = _a, rest = __rest(_a, ["roleIds"]);
126
+ var { roleIds: _ } = _a, rest = __rest(_a, ["roleIds"]);
127
127
  return rest;
128
128
  });
129
129
  //@ts-ignore
@@ -59,7 +59,9 @@ let UsingDecoratorsToInstallSkills = class UsingDecoratorsToInstallSkills extend
59
59
  }
60
60
  static async doesNotEmitDidInstall() {
61
61
  let passedPayload;
62
- await login_1.default.getClient().on('install-skill::v2020_12_25', ({ payload }) => {
62
+ await login_1.default
63
+ .getClient()
64
+ .on('install-skill::v2020_12_25', ({ payload }) => {
63
65
  passedPayload = payload;
64
66
  return {};
65
67
  });
@@ -385,7 +385,9 @@ let ViewFixtureTest = class ViewFixtureTest extends AbstractSpruceFixtureTest_1.
385
385
  test_utils_1.assert.isEqual(heartwood_view_controllers_1.formAssert.views, this.fixture.getFactory());
386
386
  }
387
387
  static async canSetMercuryClient() {
388
- const client = await this.mercury.connectToApi({ shouldReUseClient: false });
388
+ const client = await this.mercury.connectToApi({
389
+ shouldReUseClient: false,
390
+ });
389
391
  this.fixture.setClient(client);
390
392
  //@ts-ignore
391
393
  test_utils_1.assert.isEqual(ViewFixture_1.default.viewClient, client);
@@ -5,5 +5,5 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const Good_store_1 = __importDefault(require("../../stores/Good.store"));
7
7
  exports.default = {
8
- Good: Good_store_1.default
8
+ Good: Good_store_1.default,
9
9
  };
@@ -6,8 +6,8 @@ const fullSchema = (0, schema_1.buildSchema)({
6
6
  id: 'goodFull',
7
7
  fields: {
8
8
  firstName: {
9
- type: 'text'
10
- }
9
+ type: 'text',
10
+ },
11
11
  },
12
12
  });
13
13
  class GoodStore extends data_stores_1.AbstractStore {
@@ -26,7 +26,7 @@ class GoodStore extends data_stores_1.AbstractStore {
26
26
  async seed(options, ...rest) {
27
27
  GoodStore.seedParams = rest;
28
28
  await Promise.all(new Array(options.totalToSeed).fill(0).map(() => this.createOne({
29
- firstName: 'hola!'
29
+ firstName: 'hola!',
30
30
  })));
31
31
  }
32
32
  }
@@ -1,4 +1,4 @@
1
- import RandomViewPlugin from "../../../../../support/RandomViewPlugin";
1
+ import RandomViewPlugin from '../../../../../support/RandomViewPlugin';
2
2
  export declare const pluginsByName: {
3
3
  test1: typeof RandomViewPlugin;
4
4
  };
@@ -1,4 +1,4 @@
1
- import RandomViewPlugin2 from "../../../../../support/RandomViewPlugin2";
1
+ import RandomViewPlugin2 from '../../../../../support/RandomViewPlugin2';
2
2
  export declare const pluginsByName: {
3
3
  test2: typeof RandomViewPlugin2;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { AbstractSkillViewController } from "@sprucelabs/heartwood-view-controllers";
1
+ import { AbstractSkillViewController } from '@sprucelabs/heartwood-view-controllers';
2
2
  export default class BookSkillViewController extends AbstractSkillViewController {
3
3
  static id: string;
4
4
  render(): any;
@@ -1,4 +1,4 @@
1
- import { AbstractSkillViewController, SkillViewControllerLoadOptions, SpruceSchemas } from "@sprucelabs/heartwood-view-controllers";
1
+ import { AbstractSkillViewController, SkillViewControllerLoadOptions, SpruceSchemas } from '@sprucelabs/heartwood-view-controllers';
2
2
  export default class SpySkillViewController extends AbstractSkillViewController {
3
3
  static id: string;
4
4
  loads: SkillViewControllerLoadOptions[];
@@ -7,10 +7,11 @@ const Book_svc_1 = __importDefault(require("../../skillViewControllers/Book.svc"
7
7
  const BookForm_vc_1 = __importDefault(require("../../viewControllers/BookForm.vc"));
8
8
  const vcs = {
9
9
  BookSkillViewController: Book_svc_1.default,
10
- BookFormViewController: BookForm_vc_1.default
10
+ BookFormViewController: BookForm_vc_1.default,
11
11
  };
12
12
  //@ts-ignore
13
13
  if (typeof heartwood === 'function') {
14
+ //@ts-ignore
14
15
  heartwood(vcs);
15
16
  }
16
17
  exports.default = vcs;