Skip to content

Commit d421181

Browse files
committed
Add copy command after build for interup with surge.sh
1 parent 3e1a768 commit d421181

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

fixtures/dom/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"scripts": {
1717
"start": "react-scripts start",
1818
"prestart": "cp ../../build/dist/{react,react-dom}.development.js public/",
19-
"build": "react-scripts build",
19+
"build": "react-scripts build && cp build/index.html build/200.html",
2020
"test": "react-scripts test --env=jsdom",
2121
"eject": "react-scripts eject"
2222
}

src/renderers/dom/shared/wrappers/__tests__/ReactDOMInput-test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -465,10 +465,10 @@ describe('ReactDOMInput', () => {
465465
});
466466

467467
ReactDOM.render(<input value="a" />, container);
468-
expect(nodeValueSetter.mock.calls.length).toBe(1);
468+
expect(nodeValueSetter.mock.calls.length).toBe(0);
469469

470470
ReactDOM.render(<input value="b" />, container);
471-
expect(nodeValueSetter.mock.calls.length).toBe(2);
471+
expect(nodeValueSetter.mock.calls.length).toBe(1);
472472
});
473473

474474
it('should properly control a value of number `0`', () => {

0 commit comments

Comments
 (0)