chore(Toast): fix missing overlay prop (#8236)

This commit is contained in:
neverland
2021-02-27 20:56:21 +08:00
committed by GitHub
parent 6da5267891
commit e6eb703207
2 changed files with 5 additions and 3 deletions
+3 -2
View File
@@ -1,11 +1,11 @@
import Toast from '../Toast';
import { mount , later } from '../../../test';
import { mount, later } from '../../../test';
test('should change overlay style after using overlay-style prop', async () => {
const wrapper = mount(Toast, {
props: {
show: true,
overlay: true,
overlayStyle: {
background: 'red',
},
@@ -32,6 +32,7 @@ test('should close Toast when using closeOnClickOverlay prop and overlay is clic
const wrapper = mount(Toast, {
props: {
show: true,
overlay: true,
closeOnClickOverlay: true,
},
});