@mytechtoday/augment-extensions 1.3.0 → 1.3.1
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.
- package/LICENSE +22 -22
- package/augment-extensions/domain-rules/software-architecture/README.md +143 -143
- package/augment-extensions/domain-rules/software-architecture/examples/banking-layered.md +961 -961
- package/augment-extensions/domain-rules/software-architecture/examples/ecommerce-microservices.md +990 -990
- package/augment-extensions/domain-rules/software-architecture/examples/iot-eventdriven.md +882 -882
- package/augment-extensions/domain-rules/software-architecture/examples/monolith-to-microservices-migration.md +703 -703
- package/augment-extensions/domain-rules/software-architecture/examples/serverless-imageprocessing.md +957 -957
- package/augment-extensions/domain-rules/software-architecture/examples/trading-eventdriven.md +747 -747
- package/augment-extensions/domain-rules/software-architecture/module.json +119 -119
- package/augment-extensions/domain-rules/software-architecture/rules/challenges-solutions.md +763 -763
- package/augment-extensions/domain-rules/software-architecture/rules/definitions-terminology.md +409 -409
- package/augment-extensions/domain-rules/software-architecture/rules/design-principles.md +684 -684
- package/augment-extensions/domain-rules/software-architecture/rules/evaluation-testing.md +1381 -1381
- package/augment-extensions/domain-rules/software-architecture/rules/event-driven-architecture.md +616 -616
- package/augment-extensions/domain-rules/software-architecture/rules/fundamentals.md +306 -306
- package/augment-extensions/domain-rules/software-architecture/rules/industry-architectures.md +554 -554
- package/augment-extensions/domain-rules/software-architecture/rules/layered-architecture.md +776 -776
- package/augment-extensions/domain-rules/software-architecture/rules/microservices-architecture.md +503 -503
- package/augment-extensions/domain-rules/software-architecture/rules/modeling-documentation.md +1199 -1199
- package/augment-extensions/domain-rules/software-architecture/rules/monolithic-architecture.md +351 -351
- package/augment-extensions/domain-rules/software-architecture/rules/principles.md +556 -556
- package/augment-extensions/domain-rules/software-architecture/rules/quality-attributes.md +797 -797
- package/augment-extensions/domain-rules/software-architecture/rules/scalability-performance.md +1345 -1345
- package/augment-extensions/domain-rules/software-architecture/rules/security-architecture.md +1039 -1039
- package/augment-extensions/domain-rules/software-architecture/rules/serverless-architecture.md +711 -711
- package/augment-extensions/domain-rules/software-architecture/rules/skills-development.md +568 -568
- package/augment-extensions/domain-rules/software-architecture/rules/tools-methodologies.md +961 -961
- package/augment-extensions/visual-design/CHANGELOG.md +132 -132
- package/augment-extensions/visual-design/README.md +255 -255
- package/augment-extensions/visual-design/__tests__/README.md +119 -119
- package/augment-extensions/visual-design/__tests__/style-selector.test.ts +172 -172
- package/augment-extensions/visual-design/__tests__/vendor-styles.test.ts +214 -214
- package/augment-extensions/visual-design/domains/other/ai-prompt-helper.ts +157 -157
- package/augment-extensions/visual-design/domains/other/dotnet-application.ts +156 -156
- package/augment-extensions/visual-design/domains/other/linux-platform.ts +156 -156
- package/augment-extensions/visual-design/domains/other/mobile-application.ts +157 -157
- package/augment-extensions/visual-design/domains/other/motion-picture.ts +156 -156
- package/augment-extensions/visual-design/domains/other/os-application.ts +156 -156
- package/augment-extensions/visual-design/domains/other/print-campaigns.ts +158 -158
- package/augment-extensions/visual-design/domains/other/web-app.ts +157 -157
- package/augment-extensions/visual-design/domains/other/website.ts +161 -161
- package/augment-extensions/visual-design/domains/other/windows-platform.ts +156 -156
- package/augment-extensions/visual-design/domains/web-page-styles/amazon-cloudscape.ts +506 -506
- package/augment-extensions/visual-design/domains/web-page-styles/google-modern.ts +615 -615
- package/augment-extensions/visual-design/domains/web-page-styles/microsoft-fluent.ts +531 -531
- package/augment-extensions/visual-design/examples/README.md +97 -97
- package/augment-extensions/visual-design/examples/ai-prompt-generation.md +233 -233
- package/augment-extensions/visual-design/examples/basic-usage.md +216 -216
- package/augment-extensions/visual-design/examples/domain-workflows.md +257 -257
- package/augment-extensions/visual-design/examples/vendor-comparison.md +247 -247
- package/augment-extensions/visual-design/module.json +78 -78
- package/augment-extensions/visual-design/style-selector.ts +177 -177
- package/augment-extensions/visual-design/types.ts +302 -302
- package/augment-extensions/visual-design/visual-design-core.ts +469 -469
- package/augment-extensions/workflows/adr-support/README.md +227 -227
- package/augment-extensions/workflows/adr-support/__tests__/adr-validator.test.ts +203 -203
- package/augment-extensions/workflows/adr-support/adr-validator.ts +162 -162
- package/augment-extensions/workflows/adr-support/examples/complete-lifecycle-example.md +449 -449
- package/augment-extensions/workflows/adr-support/examples/integration-example.md +580 -580
- package/augment-extensions/workflows/adr-support/examples/superseding-example.md +436 -436
- package/augment-extensions/workflows/adr-support/module.json +112 -112
- package/augment-extensions/workflows/adr-support/rules/adr-creation.md +372 -372
- package/augment-extensions/workflows/adr-support/rules/beads-integration.md +443 -443
- package/augment-extensions/workflows/adr-support/rules/conflict-detection.md +486 -486
- package/augment-extensions/workflows/adr-support/rules/decision-detection.md +362 -362
- package/augment-extensions/workflows/adr-support/rules/lifecycle-management.md +427 -427
- package/augment-extensions/workflows/adr-support/rules/openspec-integration.md +465 -465
- package/augment-extensions/workflows/adr-support/rules/template-selection.md +405 -405
- package/augment-extensions/workflows/adr-support/rules/validation-rules.md +543 -543
- package/augment-extensions/workflows/adr-support/schemas/adr-config.json +191 -191
- package/augment-extensions/workflows/adr-support/schemas/adr-metadata.json +172 -172
- package/augment-extensions/workflows/adr-support/templates/business-case.md +235 -235
- package/augment-extensions/workflows/adr-support/templates/madr-elaborate.md +197 -197
- package/augment-extensions/workflows/adr-support/templates/madr-simple.md +68 -68
- package/augment-extensions/workflows/adr-support/templates/nygard.md +84 -84
- package/augment-extensions/writing-standards/screenplay/rules/file-organization.md +213 -213
- package/augment-extensions/writing-standards/screenplay/utils/__tests__/file-organization.test.ts +169 -169
- package/augment-extensions/writing-standards/screenplay/utils/file-organization.ts +165 -165
- package/cli/dist/utils/auto-sync.js +19 -19
- package/package.json +5 -3
- package/augment-extensions/workflows/openspec/README.md +0 -96
- package/augment-extensions/workflows/openspec/examples/complete-change-example.md +0 -244
- package/augment-extensions/workflows/openspec/module.json +0 -54
- package/augment-extensions/workflows/openspec/rules/best-practices.md +0 -272
- package/augment-extensions/workflows/openspec/rules/manual-setup.md +0 -231
- package/augment-extensions/workflows/openspec/rules/spec-format.md +0 -236
- package/augment-extensions/workflows/openspec/rules/workflow.md +0 -214
- package/cli/dist/utils/__tests__/adr-validator.example.d.ts +0 -6
- package/cli/dist/utils/__tests__/adr-validator.example.d.ts.map +0 -1
- package/cli/dist/utils/__tests__/adr-validator.example.js +0 -148
- package/cli/dist/utils/__tests__/adr-validator.example.js.map +0 -1
- package/cli/dist/utils/adr-validator.d.ts +0 -65
- package/cli/dist/utils/adr-validator.d.ts.map +0 -1
- package/cli/dist/utils/adr-validator.js +0 -203
- package/cli/dist/utils/adr-validator.js.map +0 -1
|
@@ -1,214 +1,214 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Vendor Styles Integration Tests
|
|
3
|
-
*
|
|
4
|
-
* Tests for Google Modern, Microsoft Fluent, and Amazon Cloudscape
|
|
5
|
-
* design system implementations.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { GOOGLE_MODERN } from '../domains/web-page-styles/google-modern';
|
|
9
|
-
import { MICROSOFT_FLUENT } from '../domains/web-page-styles/microsoft-fluent';
|
|
10
|
-
import { AMAZON_CLOUDSCAPE } from '../domains/web-page-styles/amazon-cloudscape';
|
|
11
|
-
import { VendorStyle } from '../types';
|
|
12
|
-
|
|
13
|
-
describe('Vendor Styles', () => {
|
|
14
|
-
describe('Google Modern (Material 3 Expressive)', () => {
|
|
15
|
-
it('should have correct vendor identifier', () => {
|
|
16
|
-
expect(GOOGLE_MODERN.vendor).toBe('google');
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
it('should have correct name and version', () => {
|
|
20
|
-
expect(GOOGLE_MODERN.name).toBe('Material 3 Expressive');
|
|
21
|
-
expect(GOOGLE_MODERN.version).toBe('3.0');
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
it('should have characteristics array', () => {
|
|
25
|
-
expect(Array.isArray(GOOGLE_MODERN.characteristics)).toBe(true);
|
|
26
|
-
expect(GOOGLE_MODERN.characteristics.length).toBeGreaterThan(0);
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
it('should have color palette', () => {
|
|
30
|
-
expect(GOOGLE_MODERN.colorPalette).toBeDefined();
|
|
31
|
-
expect(GOOGLE_MODERN.colorPalette.primary).toBeDefined();
|
|
32
|
-
expect(GOOGLE_MODERN.colorPalette.primary.hex).toBe('#6750A4');
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
it('should have typography system', () => {
|
|
36
|
-
expect(GOOGLE_MODERN.typography).toBeDefined();
|
|
37
|
-
expect(GOOGLE_MODERN.typography.fontFamilies).toBeDefined();
|
|
38
|
-
expect(GOOGLE_MODERN.typography.hierarchy).toBeDefined();
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
it('should have layout system', () => {
|
|
42
|
-
expect(GOOGLE_MODERN.layout).toBeDefined();
|
|
43
|
-
expect(GOOGLE_MODERN.layout.grid).toBeDefined();
|
|
44
|
-
expect(GOOGLE_MODERN.layout.spacing).toBeDefined();
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
it('should have motion system', () => {
|
|
48
|
-
expect(GOOGLE_MODERN.motion).toBeDefined();
|
|
49
|
-
expect(GOOGLE_MODERN.motion.durations).toBeDefined();
|
|
50
|
-
expect(GOOGLE_MODERN.motion.easings).toBeDefined();
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
it('should have elevation system', () => {
|
|
54
|
-
expect(GOOGLE_MODERN.elevation).toBeDefined();
|
|
55
|
-
expect(GOOGLE_MODERN.elevation.levels).toBeDefined();
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
it('should have component library', () => {
|
|
59
|
-
expect(GOOGLE_MODERN.components).toBeDefined();
|
|
60
|
-
expect(GOOGLE_MODERN.components?.buttons).toBeDefined();
|
|
61
|
-
expect(GOOGLE_MODERN.components?.inputs).toBeDefined();
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
describe('Microsoft Fluent 2', () => {
|
|
66
|
-
it('should have correct vendor identifier', () => {
|
|
67
|
-
expect(MICROSOFT_FLUENT.vendor).toBe('microsoft');
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
it('should have correct name and version', () => {
|
|
71
|
-
expect(MICROSOFT_FLUENT.name).toBe('Fluent 2');
|
|
72
|
-
expect(MICROSOFT_FLUENT.version).toBe('2.0');
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
it('should have characteristics array', () => {
|
|
76
|
-
expect(Array.isArray(MICROSOFT_FLUENT.characteristics)).toBe(true);
|
|
77
|
-
expect(MICROSOFT_FLUENT.characteristics.length).toBeGreaterThan(0);
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
it('should have color palette', () => {
|
|
81
|
-
expect(MICROSOFT_FLUENT.colorPalette).toBeDefined();
|
|
82
|
-
expect(MICROSOFT_FLUENT.colorPalette.primary).toBeDefined();
|
|
83
|
-
expect(MICROSOFT_FLUENT.colorPalette.primary.hex).toBe('#0078D4');
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
it('should have typography system', () => {
|
|
87
|
-
expect(MICROSOFT_FLUENT.typography).toBeDefined();
|
|
88
|
-
expect(MICROSOFT_FLUENT.typography.fontFamilies).toBeDefined();
|
|
89
|
-
expect(MICROSOFT_FLUENT.typography.hierarchy).toBeDefined();
|
|
90
|
-
});
|
|
91
|
-
|
|
92
|
-
it('should have layout system', () => {
|
|
93
|
-
expect(MICROSOFT_FLUENT.layout).toBeDefined();
|
|
94
|
-
expect(MICROSOFT_FLUENT.layout.grid).toBeDefined();
|
|
95
|
-
expect(MICROSOFT_FLUENT.layout.spacing).toBeDefined();
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
it('should have motion system', () => {
|
|
99
|
-
expect(MICROSOFT_FLUENT.motion).toBeDefined();
|
|
100
|
-
expect(MICROSOFT_FLUENT.motion.durations).toBeDefined();
|
|
101
|
-
expect(MICROSOFT_FLUENT.motion.easings).toBeDefined();
|
|
102
|
-
});
|
|
103
|
-
|
|
104
|
-
it('should have elevation system', () => {
|
|
105
|
-
expect(MICROSOFT_FLUENT.elevation).toBeDefined();
|
|
106
|
-
expect(MICROSOFT_FLUENT.elevation.levels).toBeDefined();
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
it('should have component library', () => {
|
|
110
|
-
expect(MICROSOFT_FLUENT.components).toBeDefined();
|
|
111
|
-
expect(MICROSOFT_FLUENT.components?.buttons).toBeDefined();
|
|
112
|
-
expect(MICROSOFT_FLUENT.components?.inputs).toBeDefined();
|
|
113
|
-
});
|
|
114
|
-
});
|
|
115
|
-
|
|
116
|
-
describe('Amazon Cloudscape', () => {
|
|
117
|
-
it('should have correct vendor identifier', () => {
|
|
118
|
-
expect(AMAZON_CLOUDSCAPE.vendor).toBe('amazon');
|
|
119
|
-
});
|
|
120
|
-
|
|
121
|
-
it('should have correct name and version', () => {
|
|
122
|
-
expect(AMAZON_CLOUDSCAPE.name).toBe('Cloudscape Design System');
|
|
123
|
-
expect(AMAZON_CLOUDSCAPE.version).toBe('3.0');
|
|
124
|
-
});
|
|
125
|
-
|
|
126
|
-
it('should have characteristics array', () => {
|
|
127
|
-
expect(Array.isArray(AMAZON_CLOUDSCAPE.characteristics)).toBe(true);
|
|
128
|
-
expect(AMAZON_CLOUDSCAPE.characteristics.length).toBeGreaterThan(0);
|
|
129
|
-
});
|
|
130
|
-
|
|
131
|
-
it('should have color palette', () => {
|
|
132
|
-
expect(AMAZON_CLOUDSCAPE.colorPalette).toBeDefined();
|
|
133
|
-
expect(AMAZON_CLOUDSCAPE.colorPalette.primary).toBeDefined();
|
|
134
|
-
expect(AMAZON_CLOUDSCAPE.colorPalette.primary.hex).toBe('#0972D3');
|
|
135
|
-
});
|
|
136
|
-
|
|
137
|
-
it('should have typography system', () => {
|
|
138
|
-
expect(AMAZON_CLOUDSCAPE.typography).toBeDefined();
|
|
139
|
-
expect(AMAZON_CLOUDSCAPE.typography.fontFamilies).toBeDefined();
|
|
140
|
-
expect(AMAZON_CLOUDSCAPE.typography.hierarchy).toBeDefined();
|
|
141
|
-
});
|
|
142
|
-
|
|
143
|
-
it('should have layout system', () => {
|
|
144
|
-
expect(AMAZON_CLOUDSCAPE.layout).toBeDefined();
|
|
145
|
-
expect(AMAZON_CLOUDSCAPE.layout.grid).toBeDefined();
|
|
146
|
-
expect(AMAZON_CLOUDSCAPE.layout.spacing).toBeDefined();
|
|
147
|
-
});
|
|
148
|
-
|
|
149
|
-
it('should have motion system', () => {
|
|
150
|
-
expect(AMAZON_CLOUDSCAPE.motion).toBeDefined();
|
|
151
|
-
expect(AMAZON_CLOUDSCAPE.motion.durations).toBeDefined();
|
|
152
|
-
expect(AMAZON_CLOUDSCAPE.motion.easings).toBeDefined();
|
|
153
|
-
});
|
|
154
|
-
|
|
155
|
-
it('should have elevation system', () => {
|
|
156
|
-
expect(AMAZON_CLOUDSCAPE.elevation).toBeDefined();
|
|
157
|
-
expect(AMAZON_CLOUDSCAPE.elevation.levels).toBeDefined();
|
|
158
|
-
});
|
|
159
|
-
|
|
160
|
-
it('should have component library', () => {
|
|
161
|
-
expect(AMAZON_CLOUDSCAPE.components).toBeDefined();
|
|
162
|
-
expect(AMAZON_CLOUDSCAPE.components?.buttons).toBeDefined();
|
|
163
|
-
expect(AMAZON_CLOUDSCAPE.components?.inputs).toBeDefined();
|
|
164
|
-
});
|
|
165
|
-
});
|
|
166
|
-
|
|
167
|
-
describe('Cross-vendor consistency', () => {
|
|
168
|
-
const vendors: VendorStyle[] = [GOOGLE_MODERN, MICROSOFT_FLUENT, AMAZON_CLOUDSCAPE];
|
|
169
|
-
|
|
170
|
-
it('all vendors should have required properties', () => {
|
|
171
|
-
vendors.forEach(vendor => {
|
|
172
|
-
expect(vendor.vendor).toBeDefined();
|
|
173
|
-
expect(vendor.name).toBeDefined();
|
|
174
|
-
expect(vendor.version).toBeDefined();
|
|
175
|
-
expect(vendor.characteristics).toBeDefined();
|
|
176
|
-
expect(vendor.colorPalette).toBeDefined();
|
|
177
|
-
expect(vendor.typography).toBeDefined();
|
|
178
|
-
expect(vendor.layout).toBeDefined();
|
|
179
|
-
expect(vendor.motion).toBeDefined();
|
|
180
|
-
expect(vendor.elevation).toBeDefined();
|
|
181
|
-
});
|
|
182
|
-
});
|
|
183
|
-
|
|
184
|
-
it('all vendors should have unique identifiers', () => {
|
|
185
|
-
const vendorIds = vendors.map(v => v.vendor);
|
|
186
|
-
const uniqueIds = new Set(vendorIds);
|
|
187
|
-
expect(uniqueIds.size).toBe(vendors.length);
|
|
188
|
-
});
|
|
189
|
-
|
|
190
|
-
it('all vendors should have accessibility standards', () => {
|
|
191
|
-
vendors.forEach(vendor => {
|
|
192
|
-
expect(vendor.colorPalette.accessibility).toBeDefined();
|
|
193
|
-
expect(vendor.colorPalette.accessibility?.wcagLevel).toBeDefined();
|
|
194
|
-
});
|
|
195
|
-
});
|
|
196
|
-
|
|
197
|
-
it('all vendors should have responsive grid systems', () => {
|
|
198
|
-
vendors.forEach(vendor => {
|
|
199
|
-
expect(vendor.layout.grid).toBeDefined();
|
|
200
|
-
expect(vendor.layout.grid.columns).toBeGreaterThan(0);
|
|
201
|
-
expect(vendor.layout.breakpoints).toBeDefined();
|
|
202
|
-
});
|
|
203
|
-
});
|
|
204
|
-
|
|
205
|
-
it('all vendors should have spacing systems', () => {
|
|
206
|
-
vendors.forEach(vendor => {
|
|
207
|
-
expect(vendor.layout.spacing).toBeDefined();
|
|
208
|
-
expect(vendor.layout.spacing.base).toBeGreaterThan(0);
|
|
209
|
-
expect(vendor.layout.spacing.scale).toBeDefined();
|
|
210
|
-
});
|
|
211
|
-
});
|
|
212
|
-
});
|
|
213
|
-
});
|
|
214
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Vendor Styles Integration Tests
|
|
3
|
+
*
|
|
4
|
+
* Tests for Google Modern, Microsoft Fluent, and Amazon Cloudscape
|
|
5
|
+
* design system implementations.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { GOOGLE_MODERN } from '../domains/web-page-styles/google-modern';
|
|
9
|
+
import { MICROSOFT_FLUENT } from '../domains/web-page-styles/microsoft-fluent';
|
|
10
|
+
import { AMAZON_CLOUDSCAPE } from '../domains/web-page-styles/amazon-cloudscape';
|
|
11
|
+
import { VendorStyle } from '../types';
|
|
12
|
+
|
|
13
|
+
describe('Vendor Styles', () => {
|
|
14
|
+
describe('Google Modern (Material 3 Expressive)', () => {
|
|
15
|
+
it('should have correct vendor identifier', () => {
|
|
16
|
+
expect(GOOGLE_MODERN.vendor).toBe('google');
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
it('should have correct name and version', () => {
|
|
20
|
+
expect(GOOGLE_MODERN.name).toBe('Material 3 Expressive');
|
|
21
|
+
expect(GOOGLE_MODERN.version).toBe('3.0');
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
it('should have characteristics array', () => {
|
|
25
|
+
expect(Array.isArray(GOOGLE_MODERN.characteristics)).toBe(true);
|
|
26
|
+
expect(GOOGLE_MODERN.characteristics.length).toBeGreaterThan(0);
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
it('should have color palette', () => {
|
|
30
|
+
expect(GOOGLE_MODERN.colorPalette).toBeDefined();
|
|
31
|
+
expect(GOOGLE_MODERN.colorPalette.primary).toBeDefined();
|
|
32
|
+
expect(GOOGLE_MODERN.colorPalette.primary.hex).toBe('#6750A4');
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
it('should have typography system', () => {
|
|
36
|
+
expect(GOOGLE_MODERN.typography).toBeDefined();
|
|
37
|
+
expect(GOOGLE_MODERN.typography.fontFamilies).toBeDefined();
|
|
38
|
+
expect(GOOGLE_MODERN.typography.hierarchy).toBeDefined();
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
it('should have layout system', () => {
|
|
42
|
+
expect(GOOGLE_MODERN.layout).toBeDefined();
|
|
43
|
+
expect(GOOGLE_MODERN.layout.grid).toBeDefined();
|
|
44
|
+
expect(GOOGLE_MODERN.layout.spacing).toBeDefined();
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
it('should have motion system', () => {
|
|
48
|
+
expect(GOOGLE_MODERN.motion).toBeDefined();
|
|
49
|
+
expect(GOOGLE_MODERN.motion.durations).toBeDefined();
|
|
50
|
+
expect(GOOGLE_MODERN.motion.easings).toBeDefined();
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
it('should have elevation system', () => {
|
|
54
|
+
expect(GOOGLE_MODERN.elevation).toBeDefined();
|
|
55
|
+
expect(GOOGLE_MODERN.elevation.levels).toBeDefined();
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
it('should have component library', () => {
|
|
59
|
+
expect(GOOGLE_MODERN.components).toBeDefined();
|
|
60
|
+
expect(GOOGLE_MODERN.components?.buttons).toBeDefined();
|
|
61
|
+
expect(GOOGLE_MODERN.components?.inputs).toBeDefined();
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
describe('Microsoft Fluent 2', () => {
|
|
66
|
+
it('should have correct vendor identifier', () => {
|
|
67
|
+
expect(MICROSOFT_FLUENT.vendor).toBe('microsoft');
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
it('should have correct name and version', () => {
|
|
71
|
+
expect(MICROSOFT_FLUENT.name).toBe('Fluent 2');
|
|
72
|
+
expect(MICROSOFT_FLUENT.version).toBe('2.0');
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
it('should have characteristics array', () => {
|
|
76
|
+
expect(Array.isArray(MICROSOFT_FLUENT.characteristics)).toBe(true);
|
|
77
|
+
expect(MICROSOFT_FLUENT.characteristics.length).toBeGreaterThan(0);
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
it('should have color palette', () => {
|
|
81
|
+
expect(MICROSOFT_FLUENT.colorPalette).toBeDefined();
|
|
82
|
+
expect(MICROSOFT_FLUENT.colorPalette.primary).toBeDefined();
|
|
83
|
+
expect(MICROSOFT_FLUENT.colorPalette.primary.hex).toBe('#0078D4');
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
it('should have typography system', () => {
|
|
87
|
+
expect(MICROSOFT_FLUENT.typography).toBeDefined();
|
|
88
|
+
expect(MICROSOFT_FLUENT.typography.fontFamilies).toBeDefined();
|
|
89
|
+
expect(MICROSOFT_FLUENT.typography.hierarchy).toBeDefined();
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
it('should have layout system', () => {
|
|
93
|
+
expect(MICROSOFT_FLUENT.layout).toBeDefined();
|
|
94
|
+
expect(MICROSOFT_FLUENT.layout.grid).toBeDefined();
|
|
95
|
+
expect(MICROSOFT_FLUENT.layout.spacing).toBeDefined();
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
it('should have motion system', () => {
|
|
99
|
+
expect(MICROSOFT_FLUENT.motion).toBeDefined();
|
|
100
|
+
expect(MICROSOFT_FLUENT.motion.durations).toBeDefined();
|
|
101
|
+
expect(MICROSOFT_FLUENT.motion.easings).toBeDefined();
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
it('should have elevation system', () => {
|
|
105
|
+
expect(MICROSOFT_FLUENT.elevation).toBeDefined();
|
|
106
|
+
expect(MICROSOFT_FLUENT.elevation.levels).toBeDefined();
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
it('should have component library', () => {
|
|
110
|
+
expect(MICROSOFT_FLUENT.components).toBeDefined();
|
|
111
|
+
expect(MICROSOFT_FLUENT.components?.buttons).toBeDefined();
|
|
112
|
+
expect(MICROSOFT_FLUENT.components?.inputs).toBeDefined();
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
describe('Amazon Cloudscape', () => {
|
|
117
|
+
it('should have correct vendor identifier', () => {
|
|
118
|
+
expect(AMAZON_CLOUDSCAPE.vendor).toBe('amazon');
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
it('should have correct name and version', () => {
|
|
122
|
+
expect(AMAZON_CLOUDSCAPE.name).toBe('Cloudscape Design System');
|
|
123
|
+
expect(AMAZON_CLOUDSCAPE.version).toBe('3.0');
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
it('should have characteristics array', () => {
|
|
127
|
+
expect(Array.isArray(AMAZON_CLOUDSCAPE.characteristics)).toBe(true);
|
|
128
|
+
expect(AMAZON_CLOUDSCAPE.characteristics.length).toBeGreaterThan(0);
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
it('should have color palette', () => {
|
|
132
|
+
expect(AMAZON_CLOUDSCAPE.colorPalette).toBeDefined();
|
|
133
|
+
expect(AMAZON_CLOUDSCAPE.colorPalette.primary).toBeDefined();
|
|
134
|
+
expect(AMAZON_CLOUDSCAPE.colorPalette.primary.hex).toBe('#0972D3');
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
it('should have typography system', () => {
|
|
138
|
+
expect(AMAZON_CLOUDSCAPE.typography).toBeDefined();
|
|
139
|
+
expect(AMAZON_CLOUDSCAPE.typography.fontFamilies).toBeDefined();
|
|
140
|
+
expect(AMAZON_CLOUDSCAPE.typography.hierarchy).toBeDefined();
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
it('should have layout system', () => {
|
|
144
|
+
expect(AMAZON_CLOUDSCAPE.layout).toBeDefined();
|
|
145
|
+
expect(AMAZON_CLOUDSCAPE.layout.grid).toBeDefined();
|
|
146
|
+
expect(AMAZON_CLOUDSCAPE.layout.spacing).toBeDefined();
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
it('should have motion system', () => {
|
|
150
|
+
expect(AMAZON_CLOUDSCAPE.motion).toBeDefined();
|
|
151
|
+
expect(AMAZON_CLOUDSCAPE.motion.durations).toBeDefined();
|
|
152
|
+
expect(AMAZON_CLOUDSCAPE.motion.easings).toBeDefined();
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
it('should have elevation system', () => {
|
|
156
|
+
expect(AMAZON_CLOUDSCAPE.elevation).toBeDefined();
|
|
157
|
+
expect(AMAZON_CLOUDSCAPE.elevation.levels).toBeDefined();
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
it('should have component library', () => {
|
|
161
|
+
expect(AMAZON_CLOUDSCAPE.components).toBeDefined();
|
|
162
|
+
expect(AMAZON_CLOUDSCAPE.components?.buttons).toBeDefined();
|
|
163
|
+
expect(AMAZON_CLOUDSCAPE.components?.inputs).toBeDefined();
|
|
164
|
+
});
|
|
165
|
+
});
|
|
166
|
+
|
|
167
|
+
describe('Cross-vendor consistency', () => {
|
|
168
|
+
const vendors: VendorStyle[] = [GOOGLE_MODERN, MICROSOFT_FLUENT, AMAZON_CLOUDSCAPE];
|
|
169
|
+
|
|
170
|
+
it('all vendors should have required properties', () => {
|
|
171
|
+
vendors.forEach(vendor => {
|
|
172
|
+
expect(vendor.vendor).toBeDefined();
|
|
173
|
+
expect(vendor.name).toBeDefined();
|
|
174
|
+
expect(vendor.version).toBeDefined();
|
|
175
|
+
expect(vendor.characteristics).toBeDefined();
|
|
176
|
+
expect(vendor.colorPalette).toBeDefined();
|
|
177
|
+
expect(vendor.typography).toBeDefined();
|
|
178
|
+
expect(vendor.layout).toBeDefined();
|
|
179
|
+
expect(vendor.motion).toBeDefined();
|
|
180
|
+
expect(vendor.elevation).toBeDefined();
|
|
181
|
+
});
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
it('all vendors should have unique identifiers', () => {
|
|
185
|
+
const vendorIds = vendors.map(v => v.vendor);
|
|
186
|
+
const uniqueIds = new Set(vendorIds);
|
|
187
|
+
expect(uniqueIds.size).toBe(vendors.length);
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
it('all vendors should have accessibility standards', () => {
|
|
191
|
+
vendors.forEach(vendor => {
|
|
192
|
+
expect(vendor.colorPalette.accessibility).toBeDefined();
|
|
193
|
+
expect(vendor.colorPalette.accessibility?.wcagLevel).toBeDefined();
|
|
194
|
+
});
|
|
195
|
+
});
|
|
196
|
+
|
|
197
|
+
it('all vendors should have responsive grid systems', () => {
|
|
198
|
+
vendors.forEach(vendor => {
|
|
199
|
+
expect(vendor.layout.grid).toBeDefined();
|
|
200
|
+
expect(vendor.layout.grid.columns).toBeGreaterThan(0);
|
|
201
|
+
expect(vendor.layout.breakpoints).toBeDefined();
|
|
202
|
+
});
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
it('all vendors should have spacing systems', () => {
|
|
206
|
+
vendors.forEach(vendor => {
|
|
207
|
+
expect(vendor.layout.spacing).toBeDefined();
|
|
208
|
+
expect(vendor.layout.spacing.base).toBeGreaterThan(0);
|
|
209
|
+
expect(vendor.layout.spacing.scale).toBeDefined();
|
|
210
|
+
});
|
|
211
|
+
});
|
|
212
|
+
});
|
|
213
|
+
});
|
|
214
|
+
|