-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into 7793-progressstep-invalid-icon-title
- Loading branch information
Showing
12 changed files
with
142 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
packages/motion/__tests__/__snapshots__/motion-test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`@carbon/motion @carbon/motion/scss/motion.scss 1`] = ` | ||
Array [ | ||
"fast-01", | ||
"fast-02", | ||
"moderate-01", | ||
"moderate-02", | ||
"slow-01", | ||
"slow-02", | ||
"carbon--easings", | ||
] | ||
`; | ||
|
||
exports[`@carbon/motion Public API 1`] = ` | ||
Object { | ||
"easings": Object { | ||
"entrance": Object { | ||
"expressive": "cubic-bezier(0, 0, 0.3, 1)", | ||
"productive": "cubic-bezier(0, 0, 0.38, 0.9)", | ||
}, | ||
"exit": Object { | ||
"expressive": "cubic-bezier(0.4, 0.14, 1, 1)", | ||
"productive": "cubic-bezier(0.2, 0, 1, 0.9)", | ||
}, | ||
"standard": Object { | ||
"expressive": "cubic-bezier(0.4, 0.14, 0.3, 1)", | ||
"productive": "cubic-bezier(0.2, 0, 0.38, 0.9)", | ||
}, | ||
}, | ||
"fast01": "70ms", | ||
"fast02": "110ms", | ||
"moderate01": "150ms", | ||
"moderate02": "240ms", | ||
"motion": [Function], | ||
"slow01": "400ms", | ||
"slow02": "700ms", | ||
"unstable_tokens": Array [ | ||
"fast01", | ||
"fast02", | ||
"moderate01", | ||
"moderate02", | ||
"slow01", | ||
"slow02", | ||
], | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @jest-environment node | ||
*/ | ||
|
||
import { SassRenderer } from '@carbon/test-utils/scss'; | ||
import * as CarbonMotion from '../src'; | ||
|
||
const { render } = SassRenderer.create(__dirname); | ||
|
||
describe('@carbon/motion', () => { | ||
test('Public API', () => { | ||
expect(CarbonMotion).toMatchSnapshot(); | ||
}); | ||
|
||
test('@carbon/motion/scss/motion.scss', async () => { | ||
const { getValue } = await render(` | ||
@use 'sass:meta'; | ||
@use '../scss/motion'; | ||
$_: get-value(meta.module-variables('motion')); | ||
`); | ||
const variables = getValue(0); | ||
expect(Object.keys(variables)).toMatchSnapshot(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters