diff --git a/packages/button-group/test/button-group-memory.test.ts b/packages/button-group/test/button-group-memory.test.ts new file mode 100644 index 0000000000..bc476b65e9 --- /dev/null +++ b/packages/button-group/test/button-group-memory.test.ts @@ -0,0 +1,18 @@ +/* +Copyright 2023 Adobe. All rights reserved. +This file is licensed to you under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. You may obtain a copy +of the License at http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software distributed under +the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS +OF ANY KIND, either express or implied. See the License for the specific language +governing permissions and limitations under the License. +*/ + +import { fixture } from '@open-wc/testing'; +import { buttons } from '../stories/button-group.stories.js'; +import { ButtonGroup } from '@spectrum-web-components/button-group'; +import { testForMemoryLeaks } from '../../../test/testing-helpers.js'; + +testForMemoryLeaks(async () => await fixture(buttons({}))); diff --git a/packages/button/test/button-memory.test.ts b/packages/button/test/button-memory.test.ts new file mode 100644 index 0000000000..07c7e375c3 --- /dev/null +++ b/packages/button/test/button-memory.test.ts @@ -0,0 +1,18 @@ +/* +Copyright 2023 Adobe. All rights reserved. +This file is licensed to you under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. You may obtain a copy +of the License at http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software distributed under +the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS +OF ANY KIND, either express or implied. See the License for the specific language +governing permissions and limitations under the License. +*/ + +import { fixture } from '@open-wc/testing'; +import { Default } from '../stories/button-accent-fill.stories.js'; +import { Button } from '@spectrum-web-components/button'; +import { testForMemoryLeaks } from '../../../test/testing-helpers.js'; + +testForMemoryLeaks(async () => await fixture