Skip to content

Commit

Permalink
chore: added mem test for card, button and button group
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajdeep Chandra authored and Rajdeep Chandra committed Apr 2, 2024
1 parent c7039a4 commit 6cc3ef1
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/button-group/test/button-group-memory.test.ts
Original file line number Diff line number Diff line change
@@ -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<ButtonGroup>(buttons({})));
18 changes: 18 additions & 0 deletions packages/button/test/button-memory.test.ts
Original file line number Diff line number Diff line change
@@ -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<Button>(Default({})));
18 changes: 18 additions & 0 deletions packages/card/test/card-memory.test.ts
Original file line number Diff line number Diff line change
@@ -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/card.stories.js';
import { Card } from '@spectrum-web-components/card';
import { testForMemoryLeaks } from '../../../test/testing-helpers.js';

testForMemoryLeaks(async () => await fixture<Card>(Default({})));

0 comments on commit 6cc3ef1

Please sign in to comment.