Skip to content

Commit 82db307

Browse files
committed
test(*): ignore test:v2 codecov
1 parent 100b659 commit 82db307

File tree

5 files changed

+9
-20
lines changed

5 files changed

+9
-20
lines changed

src/animate/overlay-animate.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* istanbul ignore file */
12
import React, { useCallback, useEffect, useState } from 'react';
23
import { Transition } from 'react-transition-group';
34
import classNames from 'classnames';

src/dialog/dialog-v2.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* istanbul ignore file */
12
import React, { useState, useRef, useEffect } from 'react';
23
import ReactDOM from 'react-dom';
34
import classNames from 'classnames';

src/overlay/overlay-v2.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* istanbul ignore file */
12
import React, { useState, useRef, useEffect, cloneElement } from 'react';
23
import classNames from 'classnames';
34
import Overlay from '@alifd/overlay';

src/overlay/popup-v2.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* istanbul ignore file */
12
import React, { useState, useRef, useEffect, cloneElement } from 'react';
23
import classNames from 'classnames';
34
import Overlay from '@alifd/overlay';

src/upload/runtime/iframe-uploader.jsx

+5-20
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* istanbul ignore file */
12
import React from 'react';
23
import PropTypes from 'prop-types';
34
import ReactDOM from 'react-dom';
@@ -46,10 +47,7 @@ class IframeUploader extends React.Component {
4647

4748
constructor(props) {
4849
super(props);
49-
this.domain =
50-
typeof document !== 'undefined' && document.domain
51-
? document.domain
52-
: '';
50+
this.domain = typeof document !== 'undefined' && document.domain ? document.domain : '';
5351
this.uid = uid();
5452
}
5553

@@ -83,9 +81,7 @@ class IframeUploader extends React.Component {
8381
response = doc.body.innerHTML;
8482
props.onSuccess(response, file);
8583
} catch (err) {
86-
log.warning(
87-
'cross domain error for Upload. Maybe server should return document.domain script.'
88-
);
84+
log.warning('cross domain error for Upload. Maybe server should return document.domain script.');
8985
response = 'cross-domain';
9086
props.onError(err, null, file);
9187
}
@@ -222,14 +218,7 @@ class IframeUploader extends React.Component {
222218
};
223219

224220
render() {
225-
const {
226-
disabled,
227-
className,
228-
children,
229-
accept,
230-
name,
231-
style,
232-
} = this.props;
221+
const { disabled, className, children, accept, name, style } = this.props;
233222
const { uid } = this;
234223
const iframeName = `${name}-${uid}-iframe`;
235224

@@ -258,11 +247,7 @@ class IframeUploader extends React.Component {
258247
encType="multipart/form-data"
259248
target={iframeName}
260249
>
261-
<input
262-
name="_documentDomain"
263-
value={this.domain}
264-
type="hidden"
265-
/>
250+
<input name="_documentDomain" value={this.domain} type="hidden" />
266251
<span ref={this.saveDataRef} />
267252
<input
268253
ref={this.saveInputRef}

0 commit comments

Comments
 (0)