diff --git a/UNRELEASED.md b/UNRELEASED.md index bc3b5cdb86f..a39883164e5 100644 --- a/UNRELEASED.md +++ b/UNRELEASED.md @@ -42,6 +42,7 @@ Use [the changelog guidelines](/documentation/Versioning%20and%20changelog.md) t - Remove all color() invocations ([#4636](https://github.com/Shopify/polaris-react/pull/4636)) - Cleaned up Button styling and $button-filled mixin([#4635](https://github.com/Shopify/polaris-react/pull/4635)) - Removed `rem()` function from `tokens.ts` ([#4695](https://github.com/Shopify/polaris-react/pull/4695)) +- Remove unnecessary import of `Tokens` in `Collapsible` test ([#4722](https://github.com/Shopify/polaris-react/pull/4722)) ### Deprecations diff --git a/src/components/Collapsible/tests/Collapsible.test.tsx b/src/components/Collapsible/tests/Collapsible.test.tsx index d3dd099e04d..2f7832228fd 100644 --- a/src/components/Collapsible/tests/Collapsible.test.tsx +++ b/src/components/Collapsible/tests/Collapsible.test.tsx @@ -1,7 +1,6 @@ import React, {useState, useCallback} from 'react'; import {mountWithApp} from 'tests/utilities'; -import {Tokens} from '../../../utilities/theme'; import {Collapsible, CollapsibleProps} from '../Collapsible'; describe('', () => { @@ -69,7 +68,7 @@ describe('', () => { describe('Transition', () => { it('passes a duration property', () => { - const duration = Tokens.duration150; + const duration = '150ms'; const collapsible = mountWithApp( , ); @@ -78,7 +77,7 @@ describe('', () => { }); it('passes a timingFunction property', () => { - const timingFunction = Tokens.ease; + const timingFunction = 'cubic-bezier(0.25, 0.1, 0.25, 1)'; const collapsible = mountWithApp(