mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 11:54:02 +00:00
[improvement] update eslint config (#2288)
This commit is contained in:
@@ -2,11 +2,7 @@
|
||||
|
||||
exports[`renders demo correctly 1`] = `
|
||||
<div>
|
||||
<div>
|
||||
<button class="van-button van-button--default van-button--normal"><span class="van-button__text">显示消息通知</span></button>
|
||||
</div>
|
||||
<div>
|
||||
<button class="van-button van-button--default van-button--normal"><span class="van-button__text">显示自定义消息通知</span></button>
|
||||
</div>
|
||||
<div><button class="van-button van-button--default van-button--normal"><span class="van-button__text">显示消息通知</span></button></div>
|
||||
<div><button class="van-button van-button--default van-button--normal"><span class="van-button__text">显示自定义消息通知</span></button></div>
|
||||
</div>
|
||||
`;
|
||||
|
@@ -1,9 +1,9 @@
|
||||
import Notify from '../';
|
||||
import Notify from '..';
|
||||
import { transitionStub, later } from '../../../test/utils';
|
||||
|
||||
transitionStub();
|
||||
|
||||
test('create a notify', async() => {
|
||||
test('create a notify', async () => {
|
||||
// should not cause error when call clear before show notify
|
||||
Notify.clear();
|
||||
|
||||
@@ -13,7 +13,7 @@ test('create a notify', async() => {
|
||||
expect(notify.$el.outerHTML).toMatchSnapshot();
|
||||
});
|
||||
|
||||
test('notify disappear', async() => {
|
||||
test('notify disappear', async () => {
|
||||
const notify = Notify({
|
||||
message: 'test',
|
||||
color: 'red',
|
||||
|
Reference in New Issue
Block a user