Skip to content

Commit d67200b

Browse files
committed
prettier
1 parent b57a6c7 commit d67200b

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

packages/react-dom/src/__tests__/ReactDOMFizzStaticNode-test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ describe('ReactDOMFizzStaticNode', () => {
2020
React = require('react');
2121
if (__EXPERIMENTAL__) {
2222
ReactDOMFizzStatic = require('react-dom/static');
23-
global.AbortController = require('abortcontroller-polyfill/dist/cjs-ponyfill').AbortController;
23+
global.AbortController =
24+
require('abortcontroller-polyfill/dist/cjs-ponyfill').AbortController;
2425
}
2526
Suspense = React.Suspense;
2627
});

packages/react-dom/src/__tests__/ReactDOMInput-test.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1671,7 +1671,9 @@ describe('ReactDOMInput', () => {
16711671
it('sets type, step, min, max before value always', () => {
16721672
const log = [];
16731673
const originalCreateElement = document.createElement;
1674-
spyOnDevAndProd(document, 'createElement').mockImplementation(function (type) {
1674+
spyOnDevAndProd(document, 'createElement').mockImplementation(function (
1675+
type,
1676+
) {
16751677
const el = originalCreateElement.apply(this, arguments);
16761678
let value = '';
16771679

@@ -1744,7 +1746,9 @@ describe('ReactDOMInput', () => {
17441746

17451747
const log = [];
17461748
const originalCreateElement = document.createElement;
1747-
spyOnDevAndProd(document, 'createElement').mockImplementation(function (type) {
1749+
spyOnDevAndProd(document, 'createElement').mockImplementation(function (
1750+
type,
1751+
) {
17481752
const el = originalCreateElement.apply(this, arguments);
17491753
const getDefaultValue = Object.getOwnPropertyDescriptor(
17501754
HTMLInputElement.prototype,
@@ -1781,7 +1785,10 @@ describe('ReactDOMInput', () => {
17811785
setValue.call(this, val);
17821786
},
17831787
});
1784-
spyOnDevAndProd(el, 'setAttribute').mockImplementation(function (name, val) {
1788+
spyOnDevAndProd(el, 'setAttribute').mockImplementation(function (
1789+
name,
1790+
val,
1791+
) {
17851792
log.push(`node.setAttribute(${strify(name)}, ${strify(val)})`);
17861793
});
17871794
}

packages/react-dom/src/__tests__/ReactDOMTextarea-test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ describe('ReactDOMTextarea', () => {
137137

138138
let counter = 0;
139139
const originalCreateElement = document.createElement;
140-
spyOnDevAndProd(document, 'createElement').mockImplementation(function (type) {
140+
spyOnDevAndProd(document, 'createElement').mockImplementation(function (
141+
type,
142+
) {
141143
const el = originalCreateElement.apply(this, arguments);
142144
let value = '';
143145
if (type === 'textarea') {

0 commit comments

Comments
 (0)