Merge branch 'main' into avm99963-monorail
Merged commit 4137ed7879acadbf891e8c471108acb874dae886.
GitOrigin-RevId: b6100ffc5b1da355a35f37b13fcaaf746ee8b307
diff --git a/static_src/react/mr-react-autocomplete.test.ts b/static_src/react/mr-react-autocomplete.test.ts
index 8553c36..21d6c9e 100644
--- a/static_src/react/mr-react-autocomplete.test.ts
+++ b/static_src/react/mr-react-autocomplete.test.ts
@@ -85,13 +85,23 @@
it('_options gets component names', () => {
element.vocabularyName = 'component';
element._components = new Map([
- ['Infra>UI', {docstring: 'Test docs'}],
- ['Bird>Penguin', {docstring: 'Test docs'}],
+ ['Infra>UI', {path: 'Infra>UI', docstring: 'Test docs'}],
+ ['Bird>Penguin', {path: 'Bird>Penguin', docstring: 'Test docs'}],
]);
assert.deepEqual(element._options(), ['Infra>UI', 'Bird>Penguin']);
});
+ it('_options does not get deprecated components', () => {
+ element.vocabularyName = 'component';
+ element._components = new Map([
+ ['Infra>UI>Deprecated', {path: 'Infra>UI>Deprecated', deprecated: true, docstring: 'Test docs'}],
+ ['Infra>UI>NotDeprecated', {path: 'Infra>UI>NotDeprecated', docstring: 'Test docs'}],
+ ]);
+
+ assert.deepEqual(element._options(), ['Infra>UI>NotDeprecated']);
+ });
+
it('_options gets label names', () => {
element.vocabularyName = 'label';
element._labels = new Map([