feat(Notify): add type prop (#4237)

This commit is contained in:
neverland
2019-08-26 09:48:43 +08:00
committed by GitHub
parent ae53f9b58f
commit 10b52963b8
11 changed files with 151 additions and 44 deletions
+10
View File
@@ -11,6 +11,16 @@ test('create a notify', async () => {
expect(notify.$el.outerHTML).toMatchSnapshot();
});
test('type prop', async () => {
const notify = Notify({
message: 'test',
type: 'primary'
});
await later();
expect(notify.$el.outerHTML).toMatchSnapshot();
});
test('notify disappear', async () => {
const onClose = jest.fn();
const notify = Notify({