-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
696 additions
and
684 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
{ | ||
"name": "my-reads", | ||
"version": "0.1.0", | ||
"private": true, | ||
"dependencies": { | ||
"enzyme": "^2.9.1", | ||
"jest-fetch-mock": "^1.2.1", | ||
"react": "^15.6.1", | ||
"react-dom": "^15.6.1", | ||
"react-scripts": "1.0.10", | ||
"react-test-renderer": "^15.6.1", | ||
"semantic-ui-css": "^2.2.11", | ||
"semantic-ui-react": "^0.71.3" | ||
}, | ||
"scripts": { | ||
"start": "react-scripts start", | ||
"build": "react-scripts build", | ||
"test": "react-scripts test --env=jsdom", | ||
"eject": "react-scripts eject" | ||
}, | ||
"jest": { | ||
"collectCoverageFrom": [ | ||
"src/**/*.{js,jsx}", | ||
"!src/registerServiceWorker.js", | ||
"!src/index.js" | ||
] | ||
} | ||
"name": "my-reads", | ||
"version": "0.1.0", | ||
"private": true, | ||
"dependencies": { | ||
"enzyme": "^2.9.1", | ||
"jest-fetch-mock": "^1.2.1", | ||
"react": "^15.6.1", | ||
"react-dom": "^15.6.1", | ||
"react-scripts": "1.0.10", | ||
"react-test-renderer": "^15.6.1", | ||
"semantic-ui-css": "^2.2.11", | ||
"semantic-ui-react": "^0.71.3" | ||
}, | ||
"scripts": { | ||
"start": "react-scripts start", | ||
"build": "react-scripts build", | ||
"test": "react-scripts test --env=jsdom", | ||
"eject": "react-scripts eject" | ||
}, | ||
"jest": { | ||
"collectCoverageFrom": [ | ||
"src/**/*.{js,jsx}", | ||
"!src/registerServiceWorker.js", | ||
"!src/index.js" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
{ | ||
"short_name": "React App", | ||
"name": "Create React App Sample", | ||
"icons": [ | ||
{ | ||
"src": "favicon.ico", | ||
"sizes": "192x192", | ||
"type": "image/png" | ||
} | ||
], | ||
"start_url": "./index.html", | ||
"display": "standalone", | ||
"theme_color": "#000000", | ||
"background_color": "#ffffff" | ||
"short_name": "React App", | ||
"name": "Create React App Sample", | ||
"icons": [ | ||
{ | ||
"src": "favicon.ico", | ||
"sizes": "192x192", | ||
"type": "image/png" | ||
} | ||
], | ||
"start_url": "./index.html", | ||
"display": "standalone", | ||
"theme_color": "#000000", | ||
"background_color": "#ffffff" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
// @flow | ||
|
||
export type BookType = { | ||
id: string, | ||
title: string, | ||
subtitle: string, | ||
authors: Array<string>, | ||
description: string, | ||
shelf: string, | ||
imageLinks: { | ||
thumbnail: string | ||
} | ||
} | ||
id: string, | ||
title: string, | ||
subtitle: string, | ||
authors: Array<string>, | ||
description: string, | ||
shelf: string, | ||
imageLinks: { | ||
thumbnail: string | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,40 @@ | ||
const testBooks = { | ||
books: [ | ||
{ | ||
title: "A Book Titled 1", | ||
subtitle: "A Subtitle", | ||
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.", | ||
authors: ["Author One", "Author Two"], | ||
imageLinks: { thumbnail: "cover.gif" }, | ||
id: "nggnmAEACAAJ", | ||
shelf: "testShelf" | ||
}, | ||
{ | ||
title: "Book 2: Electric Boogaloo", | ||
subtitle: "Another Subtitle #2", | ||
description: "Suspendisse facilisis varius sem, ut auctor sem pulvinar sed.", | ||
authors: ["Guy Three", "Guy Four"], | ||
imageLinks: { thumbnail: "pic2.jpg" }, | ||
id: "sJf1vQAACAAJ", | ||
shelf: "testShelf" | ||
}, | ||
{ | ||
title: "3: The Threequel", | ||
subtitle: "The 3rd and Final Subtitle", | ||
description: "Maecenas justo nunc, lobortis et volutpat vel, tempor quis tellus.", | ||
authors: ["Writer Five", "Writer Six"], | ||
imageLinks: { thumbnail: "bookCover.png" }, | ||
id: "bKs2xWEECBAL", | ||
shelf: "testShelfTwo" | ||
}, | ||
] | ||
} | ||
books: [ | ||
{ | ||
title: 'A Book Titled 1', | ||
subtitle: 'A Subtitle', | ||
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', | ||
authors: ['Author One', 'Author Two'], | ||
imageLinks: { thumbnail: 'cover.gif' }, | ||
id: 'nggnmAEACAAJ', | ||
shelf: 'testShelf' | ||
}, | ||
{ | ||
title: 'Book 2: Electric Boogaloo', | ||
subtitle: 'Another Subtitle #2', | ||
description: | ||
'Suspendisse facilisis varius sem, ut auctor sem pulvinar sed.', | ||
authors: ['Guy Three', 'Guy Four'], | ||
imageLinks: { thumbnail: 'pic2.jpg' }, | ||
id: 'sJf1vQAACAAJ', | ||
shelf: 'testShelf' | ||
}, | ||
{ | ||
title: '3: The Threequel', | ||
subtitle: 'The 3rd and Final Subtitle', | ||
description: | ||
'Maecenas justo nunc, lobortis et volutpat vel, tempor quis tellus.', | ||
authors: ['Writer Five', 'Writer Six'], | ||
imageLinks: { thumbnail: 'bookCover.png' }, | ||
id: 'bKs2xWEECBAL', | ||
shelf: 'testShelfTwo' | ||
} | ||
] | ||
}; | ||
|
||
const jsonHeaders = new Headers( | ||
{ | ||
"Accept": "application/json", | ||
"Content-Type": "application/json" | ||
} | ||
); | ||
const jsonHeaders = new Headers({ | ||
Accept: 'application/json', | ||
'Content-Type': 'application/json' | ||
}); | ||
|
||
export { testBooks, jsonHeaders } | ||
export { testBooks, jsonHeaders }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.