-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
1,072 additions
and
813 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
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
18 changes: 18 additions & 0 deletions
18
packages/element-plus/tests/collapsed-card/__snapshots__/collapsed-card.test.ts.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,18 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`collapsed card modules > collapsed card snapshot 1`] = ` | ||
"<div class="cc-collapse-card"> | ||
<div class="cc-collapse-card-title"> | ||
<div class="cc-collapse-card-title__default"> | ||
<div class="cc-collapse-card-arrow"><svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"> | ||
<path fill="currentColor" d="M11.475 14.475L7.85 10.85q-.075-.075-.112-.162T7.7 10.5q0-.2.138-.35T8.2 10h7.6q.225 0 .363.15t.137.35q0 .05-.15.35l-3.625 3.625q-.125.125-.25.175T12 14.7q-.15 0-.275-.05t-.25-.175Z"></path> | ||
</svg></div><span class="cc-collapse-card-title__text"></span> | ||
</div> | ||
</div> | ||
<transition-stub name="el-collapse-transition" appear="false" persisted="false" css="true"> | ||
<div style="display: none;"> | ||
<div class="cc-collapse-card-content"></div> | ||
</div> | ||
</transition-stub> | ||
</div>" | ||
`; |
11 changes: 11 additions & 0 deletions
11
packages/element-plus/tests/collapsed-card/collapsed-card.test.ts
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,11 @@ | ||
import { mount } from '@vue/test-utils' | ||
import { describe, test, expect } from 'vitest' | ||
import CollapsedCard from '../../../element-plus/components/collapse-card/collapse-card.vue' | ||
|
||
describe('collapsed card modules', () => { | ||
test('collapsed card snapshot', () => { | ||
const wrapper = mount(CollapsedCard) | ||
|
||
expect(wrapper.html()).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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,6 @@ | |
"exports": { | ||
"./*": "./*" | ||
}, | ||
"peerDependencies": { | ||
"vue": ">=3.4.0" | ||
}, | ||
"author": "Carl Chen", | ||
"license": "MIT" | ||
} |
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
Oops, something went wrong.