chore: rm useless warning in alpha (#36419)

* chore: rm useless warning in alpha

* chore: no need for test
This commit is contained in:
二货机器人 2022-07-07 23:41:20 +08:00 committed by GitHub
parent 61bbe8bd2d
commit dbbf1e50a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,8 @@ import * as React from 'react';
import Notification from '../notification';
// Alpha version warning, should remove when published
if (process.env.NODE_ENV !== 'production' && canUseDom()) {
/* istanbul ignore next */
if (process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'test' && canUseDom()) {
const icon: React.ReactNode = (
<img
alt="antd"