@cparra/apex-reflection 2.12.0 → 2.12.1-alpha.0
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/__tests__/end-to-end.test.ts +18 -0
- package/out.js +7163 -7163
- package/package.json +1 -1
|
@@ -387,4 +387,22 @@ describe('Class reflection', () => {
|
|
|
387
387
|
expect(result.properties[1].group).toBe('Group Name');
|
|
388
388
|
expect(result.properties[1].groupDescription).toBe('Group Description');
|
|
389
389
|
});
|
|
390
|
+
|
|
391
|
+
test('Supports block style apex docs', () => {
|
|
392
|
+
const classBody = `/**********************************************************
|
|
393
|
+
@description Uses a block style apex doc
|
|
394
|
+
@group Main
|
|
395
|
+
@test-class {@link SampleClass}
|
|
396
|
+
***********************************************************/
|
|
397
|
+
public class GroupedClass {
|
|
398
|
+
|
|
399
|
+
}
|
|
400
|
+
`;
|
|
401
|
+
|
|
402
|
+
const result = reflect(classBody);
|
|
403
|
+
expect(result.error).toBeNull()
|
|
404
|
+
|
|
405
|
+
const typeResult = result.typeMirror as ClassMirror;
|
|
406
|
+
expect(typeResult.name).toBe('GroupedClass');
|
|
407
|
+
});
|
|
390
408
|
});
|