Skip to content
This repository was archived by the owner on Oct 8, 2018. It is now read-only.

Commit 01baaa1

Browse files
TravisTravis
authored andcommitted
fixes test
1 parent a4a2df4 commit 01baaa1

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

__tests__/ReactFileReader.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import renderer from 'react-test-renderer';
44

55
test('the component renders', () => {
66
const component = renderer.create(
7-
<ReactFileReader handleFiles={() => ''}>
7+
<ReactFileReader elementId='test-render' handleFiles={() => ''}>
88
<p>Upload</p>
99
</ReactFileReader>
1010
);

__tests__/__snapshots__/ReactFileReader.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ exports[`the component renders 1`] = `
77
<input
88
accept="image/*"
99
className="react-file-reader-input"
10-
id="452c5f78-da74-4d6e-bc13-fcf46b622208"
10+
id="test-render"
1111
multiple={undefined}
1212
onChange={[Function]}
1313
style={

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,10 @@
1212
"react-dom": "^15.4.2",
1313
"uuid4": "^1.0.0"
1414
},
15-
"scripts": {
16-
"test": "jest"
17-
},
1815
"scripts": {
1916
"build": "./node_modules/.bin/babel ReactFileReader.js -o index.js",
20-
"prepublish": "npm run build"
17+
"prepublish": "npm run build",
18+
"test": "jest"
2119
},
2220
"devDependencies": {
2321
"babel-cli": "^6.24.0",

0 commit comments

Comments
 (0)