diff --git a/App.js b/App.js index 8dec87e..f6bcca2 100644 --- a/App.js +++ b/App.js @@ -7,16 +7,16 @@ import { StackNavigator } from 'react-navigation'; import { createLogger } from 'redux-logger'; import { Provider } from 'react-redux'; import thunk from 'redux-thunk'; -import { getAllMockBooks } from './src/actions'; +import { getAllBooks } from './src/actions'; import reducer from './src/reducers'; import HomeScreenContainer from './src/containers/HomeScreenContainer'; import SearchView from './src/components/HomeScreen/SearchView'; import DetailScreenContainer from './src/containers/DetailScreenContainer'; +import LentScanScreenContainer from './src/containers/LentScanScreenContainer'; import EntryScreen from './src/components/screens/EntryScreen'; import ScanScreen from './src/components/screens/ScanScreen'; import EntryTagsScreen from './src/components/screens/EntryTagsScreen'; -import LentScanScreen from './src/components/screens/LentScanScreen'; import { setTopLevelNavigator } from './src/utils/NavigationService'; const RootStack = StackNavigator( @@ -40,7 +40,7 @@ const RootStack = StackNavigator( screen: SearchView, }, LentScan: { - screen: LentScanScreen, + screen: LentScanScreenContainer, }, }, { @@ -75,7 +75,7 @@ const store = createStore( applyMiddleware(...middleware), ); -store.dispatch(getAllMockBooks()); +store.dispatch(getAllBooks()); export default class App extends Component { render() { diff --git a/assets/no_image.png b/assets/no_image.png new file mode 100644 index 0000000..8ea1226 Binary files /dev/null and b/assets/no_image.png differ diff --git a/src/__tests__/actions/books.test.js b/src/__tests__/actions/books.test.js index 6b8255c..ee15a56 100644 --- a/src/__tests__/actions/books.test.js +++ b/src/__tests__/actions/books.test.js @@ -1,6 +1,6 @@ import configureMockStore from 'redux-mock-store'; import thunk from 'redux-thunk'; -import * as actions from '../../actions/index'; +import * as actions from '../../actions'; import * as types from '../../constants/actionTypes'; import _books from '../../api/books.json'; @@ -31,7 +31,7 @@ describe('actions', () => { ]; const store = mockStore(); - return store.dispatch(actions.getAllBooks()) + return store.dispatch(actions.getAllMockBooks()) .then(() => { expect(store.getActions()).toEqual(expected); }); diff --git a/src/__tests__/actions/scan.test.js b/src/__tests__/actions/scan.test.js new file mode 100644 index 0000000..8b9cf9a --- /dev/null +++ b/src/__tests__/actions/scan.test.js @@ -0,0 +1,43 @@ +import * as actions from '../../actions'; +import * as types from '../../constants/actionTypes'; + +describe('actions', () => { + test('カメラのパーミッションが許可するアクションが生成されること', () => { + const expected = { + type: types.PERMISSIONS_GRANTED, + }; + expect(actions.permissionsGranted()).toEqual(expected); + }); + + test('カメラのパーミッションが拒否されるアクションが生成されること', () => { + const expected = { + type: types.PERMISSIONS_DENIED, + }; + expect(actions.permissionsDenied()).toEqual(expected); + }); + + test('カメラの読み取り中のアクションが生成されること', () => { + const expected = { + type: types.ISBN_READING, + }; + expect(actions.isbnReading()).toEqual(expected); + }); + + test('カメラの読み取り完了のアクションが生成されること', () => { + const isbn = 1234567890123; + const expected = { + type: types.ISBN_OK, + payload: { + isbn, + }, + }; + expect(actions.isbnOk(isbn)).toEqual(expected); + }); + + test('カメラの読み取りエラーのアクションが生成されること', () => { + const expected = { + type: types.ISBN_INVALID, + }; + expect(actions.isbnInvalid()).toEqual(expected); + }); +}); diff --git a/src/__tests__/components/LentScanScreen.test.js b/src/__tests__/components/LentScanScreen.test.js new file mode 100644 index 0000000..528fbba --- /dev/null +++ b/src/__tests__/components/LentScanScreen.test.js @@ -0,0 +1,24 @@ +import React from 'react'; +import renderer from 'react-test-renderer'; + +import LentScanScreen from '../../components/LentScanScreen'; + +describe('', () => { + it('正しくレンダリングされること', () => { + const tree = renderer + .create() + .toJSON(); + expect(tree).toMatchSnapshot(); + }); +}); diff --git a/src/__tests__/components/__snapshots__/BookList.test.js.snap b/src/__tests__/components/__snapshots__/BookList.test.js.snap index 9c01643..160ffe6 100644 --- a/src/__tests__/components/__snapshots__/BookList.test.js.snap +++ b/src/__tests__/components/__snapshots__/BookList.test.js.snap @@ -12,7 +12,7 @@ ShallowWrapper { "id": 2, "image": "none", "isbn": "9784774184111", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": true, "tags": Array [], "title": "javascript ", @@ -23,7 +23,7 @@ ShallowWrapper { "id": 14, "image": "none", "isbn": "9784774183923", - "published_at": "2018-02-12T00:00:00Z", + "published": "2018-02-12T00:00:00Z", "status": false, "tags": Array [], "title": "ghj", @@ -34,7 +34,7 @@ ShallowWrapper { "id": 16, "image": "none", "isbn": "9780004195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングGo言語", @@ -45,7 +45,7 @@ ShallowWrapper { "id": 17, "image": "none", "isbn": "9780104195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -56,7 +56,7 @@ ShallowWrapper { "id": 19, "image": "none", "isbn": "9781111115025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -67,7 +67,7 @@ ShallowWrapper { "id": 1, "image": "none", "isbn": "9784873113944", - "published_at": "2009-01-26T00:00:00Z", + "published": "2009-01-26T00:00:00Z", "status": false, "tags": Array [ Object { @@ -83,7 +83,7 @@ ShallowWrapper { "id": 23, "image": "none", "isbn": "9780987678909", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングRuby", @@ -94,7 +94,7 @@ ShallowWrapper { "id": 25, "image": "none", "isbn": "9780987678988", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングR", @@ -105,7 +105,7 @@ ShallowWrapper { "id": 20, "image": "none", "isbn": "9780004195095", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": true, "tags": Array [], "title": "スターティングRuby", @@ -116,7 +116,7 @@ ShallowWrapper { "id": 26, "image": "none", "isbn": "9789867165289", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "Docker実践ガイド impress top gearシリーズ", @@ -127,7 +127,7 @@ ShallowWrapper { "id": 27, "image": "none", "isbn": "9784949999120", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [], "title": "ReactNative", @@ -138,7 +138,7 @@ ShallowWrapper { "id": 28, "image": "none", "isbn": "9784063300468", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -170,7 +170,7 @@ ShallowWrapper { "id": 29, "image": "none", "isbn": "9784797363821", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -186,7 +186,7 @@ ShallowWrapper { "id": 30, "image": "none", "isbn": "9784797372410", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -206,7 +206,7 @@ ShallowWrapper { "id": 33, "image": "none", "isbn": "9784834002720", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -226,7 +226,7 @@ ShallowWrapper { "id": 34, "image": "none", "isbn": "9784774193830", - "published_at": "2017-11-21T00:00:00Z", + "published": "2017-11-21T00:00:00Z", "status": false, "tags": Array [ Object { @@ -246,7 +246,7 @@ ShallowWrapper { "id": 13, "image": "none", "isbn": "9784844338154", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": false, "tags": Array [ Object { @@ -262,7 +262,7 @@ ShallowWrapper { "id": 35, "image": "none", "isbn": "9784774172736", - "published_at": "2015-05-15T00:00:00Z", + "published": "2015-05-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -278,7 +278,7 @@ ShallowWrapper { "id": 46, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24090349.png", "isbn": "9784048678841", - "published_at": "2010-03-02T00:00:00Z", + "published": "2010-03-02T00:00:00Z", "status": false, "tags": Array [], "title": "リファクタリングRuby", @@ -289,7 +289,7 @@ ShallowWrapper { "id": 15, "image": "none", "isbn": "9784873115658", - "published_at": "2016-04-11T00:00:00Z", + "published": "2016-04-11T00:00:00Z", "status": true, "tags": Array [], "title": "リーダブルコード", @@ -300,7 +300,7 @@ ShallowWrapper { "id": 48, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24102621.png", "isbn": "9784798118154", - "published_at": "2008-12-03T00:00:00Z", + "published": "2008-12-03T00:00:00Z", "status": false, "tags": Array [], "title": "zsh最強シェル入門", @@ -311,7 +311,7 @@ ShallowWrapper { "id": 36, "image": "none", "isbn": "9784873114996", - "published_at": "2018-02-16T00:00:00Z", + "published": "2018-02-16T00:00:00Z", "status": false, "tags": Array [ Object { @@ -327,7 +327,7 @@ ShallowWrapper { "id": 47, "image": "none", "isbn": "9784844365501", - "published_at": "2015-12-24T00:00:00Z", + "published": "2015-12-24T00:00:00Z", "status": true, "tags": Array [], "title": "ランディングページデザインメソッド", @@ -338,7 +338,7 @@ ShallowWrapper { "id": 43, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SunMar18111526.png", "isbn": "9784569808581", - "published_at": "2018-02-18T00:00:00Z", + "published": "2018-02-18T00:00:00Z", "status": false, "tags": Array [], "title": "てすと", @@ -349,7 +349,7 @@ ShallowWrapper { "id": 49, "image": "none", "isbn": "9784865940046", - "published_at": "2018-03-23T00:00:00Z", + "published": "2018-03-23T00:00:00Z", "status": false, "tags": Array [], "title": "てすと", @@ -360,7 +360,7 @@ ShallowWrapper { "id": 50, "image": "none", "isbn": "9784048933070", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": true, "tags": Array [], "title": "社畜ちゃん", @@ -371,7 +371,7 @@ ShallowWrapper { "id": 51, "image": "none", "isbn": "9784063766417", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン", @@ -382,7 +382,7 @@ ShallowWrapper { "id": 52, "image": "none", "isbn": "9784063766424", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン2", @@ -393,7 +393,7 @@ ShallowWrapper { "id": 56, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24132702.png", "isbn": "9784063766516", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン3", @@ -404,7 +404,7 @@ ShallowWrapper { "id": 58, "image": "none", "isbn": "9784063766639", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": true, "tags": Array [ Object { @@ -444,7 +444,7 @@ ShallowWrapper { "id": 2, "image": "none", "isbn": "9784774184111", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": true, "tags": Array [], "title": "javascript ", @@ -455,7 +455,7 @@ ShallowWrapper { "id": 14, "image": "none", "isbn": "9784774183923", - "published_at": "2018-02-12T00:00:00Z", + "published": "2018-02-12T00:00:00Z", "status": false, "tags": Array [], "title": "ghj", @@ -466,7 +466,7 @@ ShallowWrapper { "id": 16, "image": "none", "isbn": "9780004195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングGo言語", @@ -477,7 +477,7 @@ ShallowWrapper { "id": 17, "image": "none", "isbn": "9780104195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -488,7 +488,7 @@ ShallowWrapper { "id": 19, "image": "none", "isbn": "9781111115025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -499,7 +499,7 @@ ShallowWrapper { "id": 1, "image": "none", "isbn": "9784873113944", - "published_at": "2009-01-26T00:00:00Z", + "published": "2009-01-26T00:00:00Z", "status": false, "tags": Array [ Object { @@ -515,7 +515,7 @@ ShallowWrapper { "id": 23, "image": "none", "isbn": "9780987678909", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングRuby", @@ -526,7 +526,7 @@ ShallowWrapper { "id": 25, "image": "none", "isbn": "9780987678988", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングR", @@ -537,7 +537,7 @@ ShallowWrapper { "id": 20, "image": "none", "isbn": "9780004195095", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": true, "tags": Array [], "title": "スターティングRuby", @@ -548,7 +548,7 @@ ShallowWrapper { "id": 26, "image": "none", "isbn": "9789867165289", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "Docker実践ガイド impress top gearシリーズ", @@ -559,7 +559,7 @@ ShallowWrapper { "id": 27, "image": "none", "isbn": "9784949999120", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [], "title": "ReactNative", @@ -570,7 +570,7 @@ ShallowWrapper { "id": 28, "image": "none", "isbn": "9784063300468", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -602,7 +602,7 @@ ShallowWrapper { "id": 29, "image": "none", "isbn": "9784797363821", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -618,7 +618,7 @@ ShallowWrapper { "id": 30, "image": "none", "isbn": "9784797372410", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -638,7 +638,7 @@ ShallowWrapper { "id": 33, "image": "none", "isbn": "9784834002720", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -658,7 +658,7 @@ ShallowWrapper { "id": 34, "image": "none", "isbn": "9784774193830", - "published_at": "2017-11-21T00:00:00Z", + "published": "2017-11-21T00:00:00Z", "status": false, "tags": Array [ Object { @@ -678,7 +678,7 @@ ShallowWrapper { "id": 13, "image": "none", "isbn": "9784844338154", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": false, "tags": Array [ Object { @@ -694,7 +694,7 @@ ShallowWrapper { "id": 35, "image": "none", "isbn": "9784774172736", - "published_at": "2015-05-15T00:00:00Z", + "published": "2015-05-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -710,7 +710,7 @@ ShallowWrapper { "id": 46, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24090349.png", "isbn": "9784048678841", - "published_at": "2010-03-02T00:00:00Z", + "published": "2010-03-02T00:00:00Z", "status": false, "tags": Array [], "title": "リファクタリングRuby", @@ -721,7 +721,7 @@ ShallowWrapper { "id": 15, "image": "none", "isbn": "9784873115658", - "published_at": "2016-04-11T00:00:00Z", + "published": "2016-04-11T00:00:00Z", "status": true, "tags": Array [], "title": "リーダブルコード", @@ -732,7 +732,7 @@ ShallowWrapper { "id": 48, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24102621.png", "isbn": "9784798118154", - "published_at": "2008-12-03T00:00:00Z", + "published": "2008-12-03T00:00:00Z", "status": false, "tags": Array [], "title": "zsh最強シェル入門", @@ -743,7 +743,7 @@ ShallowWrapper { "id": 36, "image": "none", "isbn": "9784873114996", - "published_at": "2018-02-16T00:00:00Z", + "published": "2018-02-16T00:00:00Z", "status": false, "tags": Array [ Object { @@ -759,7 +759,7 @@ ShallowWrapper { "id": 47, "image": "none", "isbn": "9784844365501", - "published_at": "2015-12-24T00:00:00Z", + "published": "2015-12-24T00:00:00Z", "status": true, "tags": Array [], "title": "ランディングページデザインメソッド", @@ -770,7 +770,7 @@ ShallowWrapper { "id": 43, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SunMar18111526.png", "isbn": "9784569808581", - "published_at": "2018-02-18T00:00:00Z", + "published": "2018-02-18T00:00:00Z", "status": false, "tags": Array [], "title": "てすと", @@ -781,7 +781,7 @@ ShallowWrapper { "id": 49, "image": "none", "isbn": "9784865940046", - "published_at": "2018-03-23T00:00:00Z", + "published": "2018-03-23T00:00:00Z", "status": false, "tags": Array [], "title": "てすと", @@ -792,7 +792,7 @@ ShallowWrapper { "id": 50, "image": "none", "isbn": "9784048933070", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": true, "tags": Array [], "title": "社畜ちゃん", @@ -803,7 +803,7 @@ ShallowWrapper { "id": 51, "image": "none", "isbn": "9784063766417", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン", @@ -814,7 +814,7 @@ ShallowWrapper { "id": 52, "image": "none", "isbn": "9784063766424", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン2", @@ -825,7 +825,7 @@ ShallowWrapper { "id": 56, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24132702.png", "isbn": "9784063766516", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン3", @@ -836,7 +836,7 @@ ShallowWrapper { "id": 58, "image": "none", "isbn": "9784063766639", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": true, "tags": Array [ Object { @@ -861,7 +861,7 @@ ShallowWrapper { "id": 2, "image": "none", "isbn": "9784774184111", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": true, "tags": Array [], "title": "javascript ", @@ -872,7 +872,7 @@ ShallowWrapper { "id": 14, "image": "none", "isbn": "9784774183923", - "published_at": "2018-02-12T00:00:00Z", + "published": "2018-02-12T00:00:00Z", "status": false, "tags": Array [], "title": "ghj", @@ -883,7 +883,7 @@ ShallowWrapper { "id": 16, "image": "none", "isbn": "9780004195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングGo言語", @@ -894,7 +894,7 @@ ShallowWrapper { "id": 17, "image": "none", "isbn": "9780104195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -905,7 +905,7 @@ ShallowWrapper { "id": 19, "image": "none", "isbn": "9781111115025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -916,7 +916,7 @@ ShallowWrapper { "id": 1, "image": "none", "isbn": "9784873113944", - "published_at": "2009-01-26T00:00:00Z", + "published": "2009-01-26T00:00:00Z", "status": false, "tags": Array [ Object { @@ -932,7 +932,7 @@ ShallowWrapper { "id": 23, "image": "none", "isbn": "9780987678909", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングRuby", @@ -943,7 +943,7 @@ ShallowWrapper { "id": 25, "image": "none", "isbn": "9780987678988", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングR", @@ -954,7 +954,7 @@ ShallowWrapper { "id": 20, "image": "none", "isbn": "9780004195095", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": true, "tags": Array [], "title": "スターティングRuby", @@ -965,7 +965,7 @@ ShallowWrapper { "id": 26, "image": "none", "isbn": "9789867165289", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "Docker実践ガイド impress top gearシリーズ", @@ -976,7 +976,7 @@ ShallowWrapper { "id": 27, "image": "none", "isbn": "9784949999120", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [], "title": "ReactNative", @@ -987,7 +987,7 @@ ShallowWrapper { "id": 28, "image": "none", "isbn": "9784063300468", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1019,7 +1019,7 @@ ShallowWrapper { "id": 29, "image": "none", "isbn": "9784797363821", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1035,7 +1035,7 @@ ShallowWrapper { "id": 30, "image": "none", "isbn": "9784797372410", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1055,7 +1055,7 @@ ShallowWrapper { "id": 33, "image": "none", "isbn": "9784834002720", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1075,7 +1075,7 @@ ShallowWrapper { "id": 34, "image": "none", "isbn": "9784774193830", - "published_at": "2017-11-21T00:00:00Z", + "published": "2017-11-21T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1095,7 +1095,7 @@ ShallowWrapper { "id": 13, "image": "none", "isbn": "9784844338154", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1111,7 +1111,7 @@ ShallowWrapper { "id": 35, "image": "none", "isbn": "9784774172736", - "published_at": "2015-05-15T00:00:00Z", + "published": "2015-05-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1127,7 +1127,7 @@ ShallowWrapper { "id": 46, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24090349.png", "isbn": "9784048678841", - "published_at": "2010-03-02T00:00:00Z", + "published": "2010-03-02T00:00:00Z", "status": false, "tags": Array [], "title": "リファクタリングRuby", @@ -1138,7 +1138,7 @@ ShallowWrapper { "id": 15, "image": "none", "isbn": "9784873115658", - "published_at": "2016-04-11T00:00:00Z", + "published": "2016-04-11T00:00:00Z", "status": true, "tags": Array [], "title": "リーダブルコード", @@ -1149,7 +1149,7 @@ ShallowWrapper { "id": 48, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24102621.png", "isbn": "9784798118154", - "published_at": "2008-12-03T00:00:00Z", + "published": "2008-12-03T00:00:00Z", "status": false, "tags": Array [], "title": "zsh最強シェル入門", @@ -1160,7 +1160,7 @@ ShallowWrapper { "id": 36, "image": "none", "isbn": "9784873114996", - "published_at": "2018-02-16T00:00:00Z", + "published": "2018-02-16T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1176,7 +1176,7 @@ ShallowWrapper { "id": 47, "image": "none", "isbn": "9784844365501", - "published_at": "2015-12-24T00:00:00Z", + "published": "2015-12-24T00:00:00Z", "status": true, "tags": Array [], "title": "ランディングページデザインメソッド", @@ -1187,7 +1187,7 @@ ShallowWrapper { "id": 43, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SunMar18111526.png", "isbn": "9784569808581", - "published_at": "2018-02-18T00:00:00Z", + "published": "2018-02-18T00:00:00Z", "status": false, "tags": Array [], "title": "てすと", @@ -1198,7 +1198,7 @@ ShallowWrapper { "id": 49, "image": "none", "isbn": "9784865940046", - "published_at": "2018-03-23T00:00:00Z", + "published": "2018-03-23T00:00:00Z", "status": false, "tags": Array [], "title": "てすと", @@ -1209,7 +1209,7 @@ ShallowWrapper { "id": 50, "image": "none", "isbn": "9784048933070", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": true, "tags": Array [], "title": "社畜ちゃん", @@ -1220,7 +1220,7 @@ ShallowWrapper { "id": 51, "image": "none", "isbn": "9784063766417", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン", @@ -1231,7 +1231,7 @@ ShallowWrapper { "id": 52, "image": "none", "isbn": "9784063766424", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン2", @@ -1242,7 +1242,7 @@ ShallowWrapper { "id": 56, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24132702.png", "isbn": "9784063766516", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン3", @@ -1253,7 +1253,7 @@ ShallowWrapper { "id": 58, "image": "none", "isbn": "9784063766639", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": true, "tags": Array [ Object { @@ -1301,7 +1301,7 @@ ShallowWrapper { "id": 2, "image": "none", "isbn": "9784774184111", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": true, "tags": Array [], "title": "javascript ", @@ -1312,7 +1312,7 @@ ShallowWrapper { "id": 14, "image": "none", "isbn": "9784774183923", - "published_at": "2018-02-12T00:00:00Z", + "published": "2018-02-12T00:00:00Z", "status": false, "tags": Array [], "title": "ghj", @@ -1323,7 +1323,7 @@ ShallowWrapper { "id": 16, "image": "none", "isbn": "9780004195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングGo言語", @@ -1334,7 +1334,7 @@ ShallowWrapper { "id": 17, "image": "none", "isbn": "9780104195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -1345,7 +1345,7 @@ ShallowWrapper { "id": 19, "image": "none", "isbn": "9781111115025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -1356,7 +1356,7 @@ ShallowWrapper { "id": 1, "image": "none", "isbn": "9784873113944", - "published_at": "2009-01-26T00:00:00Z", + "published": "2009-01-26T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1372,7 +1372,7 @@ ShallowWrapper { "id": 23, "image": "none", "isbn": "9780987678909", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングRuby", @@ -1383,7 +1383,7 @@ ShallowWrapper { "id": 25, "image": "none", "isbn": "9780987678988", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングR", @@ -1394,7 +1394,7 @@ ShallowWrapper { "id": 20, "image": "none", "isbn": "9780004195095", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": true, "tags": Array [], "title": "スターティングRuby", @@ -1405,7 +1405,7 @@ ShallowWrapper { "id": 26, "image": "none", "isbn": "9789867165289", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "Docker実践ガイド impress top gearシリーズ", @@ -1416,7 +1416,7 @@ ShallowWrapper { "id": 27, "image": "none", "isbn": "9784949999120", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [], "title": "ReactNative", @@ -1427,7 +1427,7 @@ ShallowWrapper { "id": 28, "image": "none", "isbn": "9784063300468", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1459,7 +1459,7 @@ ShallowWrapper { "id": 29, "image": "none", "isbn": "9784797363821", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1475,7 +1475,7 @@ ShallowWrapper { "id": 30, "image": "none", "isbn": "9784797372410", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1495,7 +1495,7 @@ ShallowWrapper { "id": 33, "image": "none", "isbn": "9784834002720", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1515,7 +1515,7 @@ ShallowWrapper { "id": 34, "image": "none", "isbn": "9784774193830", - "published_at": "2017-11-21T00:00:00Z", + "published": "2017-11-21T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1535,7 +1535,7 @@ ShallowWrapper { "id": 13, "image": "none", "isbn": "9784844338154", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1551,7 +1551,7 @@ ShallowWrapper { "id": 35, "image": "none", "isbn": "9784774172736", - "published_at": "2015-05-15T00:00:00Z", + "published": "2015-05-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1567,7 +1567,7 @@ ShallowWrapper { "id": 46, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24090349.png", "isbn": "9784048678841", - "published_at": "2010-03-02T00:00:00Z", + "published": "2010-03-02T00:00:00Z", "status": false, "tags": Array [], "title": "リファクタリングRuby", @@ -1578,7 +1578,7 @@ ShallowWrapper { "id": 15, "image": "none", "isbn": "9784873115658", - "published_at": "2016-04-11T00:00:00Z", + "published": "2016-04-11T00:00:00Z", "status": true, "tags": Array [], "title": "リーダブルコード", @@ -1589,7 +1589,7 @@ ShallowWrapper { "id": 48, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24102621.png", "isbn": "9784798118154", - "published_at": "2008-12-03T00:00:00Z", + "published": "2008-12-03T00:00:00Z", "status": false, "tags": Array [], "title": "zsh最強シェル入門", @@ -1600,7 +1600,7 @@ ShallowWrapper { "id": 36, "image": "none", "isbn": "9784873114996", - "published_at": "2018-02-16T00:00:00Z", + "published": "2018-02-16T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1616,7 +1616,7 @@ ShallowWrapper { "id": 47, "image": "none", "isbn": "9784844365501", - "published_at": "2015-12-24T00:00:00Z", + "published": "2015-12-24T00:00:00Z", "status": true, "tags": Array [], "title": "ランディングページデザインメソッド", @@ -1627,7 +1627,7 @@ ShallowWrapper { "id": 43, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SunMar18111526.png", "isbn": "9784569808581", - "published_at": "2018-02-18T00:00:00Z", + "published": "2018-02-18T00:00:00Z", "status": false, "tags": Array [], "title": "てすと", @@ -1638,7 +1638,7 @@ ShallowWrapper { "id": 49, "image": "none", "isbn": "9784865940046", - "published_at": "2018-03-23T00:00:00Z", + "published": "2018-03-23T00:00:00Z", "status": false, "tags": Array [], "title": "てすと", @@ -1649,7 +1649,7 @@ ShallowWrapper { "id": 50, "image": "none", "isbn": "9784048933070", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": true, "tags": Array [], "title": "社畜ちゃん", @@ -1660,7 +1660,7 @@ ShallowWrapper { "id": 51, "image": "none", "isbn": "9784063766417", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン", @@ -1671,7 +1671,7 @@ ShallowWrapper { "id": 52, "image": "none", "isbn": "9784063766424", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン2", @@ -1682,7 +1682,7 @@ ShallowWrapper { "id": 56, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24132702.png", "isbn": "9784063766516", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン3", @@ -1693,7 +1693,7 @@ ShallowWrapper { "id": 58, "image": "none", "isbn": "9784063766639", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": true, "tags": Array [ Object { @@ -1716,7 +1716,7 @@ ShallowWrapper { "id": 2, "image": "none", "isbn": "9784774184111", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": true, "tags": Array [], "title": "javascript ", @@ -1727,7 +1727,7 @@ ShallowWrapper { "id": 14, "image": "none", "isbn": "9784774183923", - "published_at": "2018-02-12T00:00:00Z", + "published": "2018-02-12T00:00:00Z", "status": false, "tags": Array [], "title": "ghj", @@ -1738,7 +1738,7 @@ ShallowWrapper { "id": 16, "image": "none", "isbn": "9780004195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングGo言語", @@ -1749,7 +1749,7 @@ ShallowWrapper { "id": 17, "image": "none", "isbn": "9780104195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -1760,7 +1760,7 @@ ShallowWrapper { "id": 19, "image": "none", "isbn": "9781111115025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -1771,7 +1771,7 @@ ShallowWrapper { "id": 1, "image": "none", "isbn": "9784873113944", - "published_at": "2009-01-26T00:00:00Z", + "published": "2009-01-26T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1787,7 +1787,7 @@ ShallowWrapper { "id": 23, "image": "none", "isbn": "9780987678909", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングRuby", @@ -1798,7 +1798,7 @@ ShallowWrapper { "id": 25, "image": "none", "isbn": "9780987678988", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングR", @@ -1809,7 +1809,7 @@ ShallowWrapper { "id": 20, "image": "none", "isbn": "9780004195095", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": true, "tags": Array [], "title": "スターティングRuby", @@ -1820,7 +1820,7 @@ ShallowWrapper { "id": 26, "image": "none", "isbn": "9789867165289", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "Docker実践ガイド impress top gearシリーズ", @@ -1831,7 +1831,7 @@ ShallowWrapper { "id": 27, "image": "none", "isbn": "9784949999120", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [], "title": "ReactNative", @@ -1842,7 +1842,7 @@ ShallowWrapper { "id": 28, "image": "none", "isbn": "9784063300468", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1874,7 +1874,7 @@ ShallowWrapper { "id": 29, "image": "none", "isbn": "9784797363821", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1890,7 +1890,7 @@ ShallowWrapper { "id": 30, "image": "none", "isbn": "9784797372410", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1910,7 +1910,7 @@ ShallowWrapper { "id": 33, "image": "none", "isbn": "9784834002720", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1930,7 +1930,7 @@ ShallowWrapper { "id": 34, "image": "none", "isbn": "9784774193830", - "published_at": "2017-11-21T00:00:00Z", + "published": "2017-11-21T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1950,7 +1950,7 @@ ShallowWrapper { "id": 13, "image": "none", "isbn": "9784844338154", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1966,7 +1966,7 @@ ShallowWrapper { "id": 35, "image": "none", "isbn": "9784774172736", - "published_at": "2015-05-15T00:00:00Z", + "published": "2015-05-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1982,7 +1982,7 @@ ShallowWrapper { "id": 46, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24090349.png", "isbn": "9784048678841", - "published_at": "2010-03-02T00:00:00Z", + "published": "2010-03-02T00:00:00Z", "status": false, "tags": Array [], "title": "リファクタリングRuby", @@ -1993,7 +1993,7 @@ ShallowWrapper { "id": 15, "image": "none", "isbn": "9784873115658", - "published_at": "2016-04-11T00:00:00Z", + "published": "2016-04-11T00:00:00Z", "status": true, "tags": Array [], "title": "リーダブルコード", @@ -2004,7 +2004,7 @@ ShallowWrapper { "id": 48, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24102621.png", "isbn": "9784798118154", - "published_at": "2008-12-03T00:00:00Z", + "published": "2008-12-03T00:00:00Z", "status": false, "tags": Array [], "title": "zsh最強シェル入門", @@ -2015,7 +2015,7 @@ ShallowWrapper { "id": 36, "image": "none", "isbn": "9784873114996", - "published_at": "2018-02-16T00:00:00Z", + "published": "2018-02-16T00:00:00Z", "status": false, "tags": Array [ Object { @@ -2031,7 +2031,7 @@ ShallowWrapper { "id": 47, "image": "none", "isbn": "9784844365501", - "published_at": "2015-12-24T00:00:00Z", + "published": "2015-12-24T00:00:00Z", "status": true, "tags": Array [], "title": "ランディングページデザインメソッド", @@ -2042,7 +2042,7 @@ ShallowWrapper { "id": 43, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SunMar18111526.png", "isbn": "9784569808581", - "published_at": "2018-02-18T00:00:00Z", + "published": "2018-02-18T00:00:00Z", "status": false, "tags": Array [], "title": "てすと", @@ -2053,7 +2053,7 @@ ShallowWrapper { "id": 49, "image": "none", "isbn": "9784865940046", - "published_at": "2018-03-23T00:00:00Z", + "published": "2018-03-23T00:00:00Z", "status": false, "tags": Array [], "title": "てすと", @@ -2064,7 +2064,7 @@ ShallowWrapper { "id": 50, "image": "none", "isbn": "9784048933070", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": true, "tags": Array [], "title": "社畜ちゃん", @@ -2075,7 +2075,7 @@ ShallowWrapper { "id": 51, "image": "none", "isbn": "9784063766417", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン", @@ -2086,7 +2086,7 @@ ShallowWrapper { "id": 52, "image": "none", "isbn": "9784063766424", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン2", @@ -2097,7 +2097,7 @@ ShallowWrapper { "id": 56, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24132702.png", "isbn": "9784063766516", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン3", @@ -2108,7 +2108,7 @@ ShallowWrapper { "id": 58, "image": "none", "isbn": "9784063766639", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": true, "tags": Array [ Object { @@ -2157,7 +2157,7 @@ ShallowWrapper { "id": 2, "image": "none", "isbn": "9784774184111", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": true, "tags": Array [], "title": "javascript ", @@ -2168,7 +2168,7 @@ ShallowWrapper { "id": 14, "image": "none", "isbn": "9784774183923", - "published_at": "2018-02-12T00:00:00Z", + "published": "2018-02-12T00:00:00Z", "status": false, "tags": Array [], "title": "ghj", @@ -2179,7 +2179,7 @@ ShallowWrapper { "id": 16, "image": "none", "isbn": "9780004195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングGo言語", @@ -2190,7 +2190,7 @@ ShallowWrapper { "id": 17, "image": "none", "isbn": "9780104195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -2201,7 +2201,7 @@ ShallowWrapper { "id": 19, "image": "none", "isbn": "9781111115025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -2212,7 +2212,7 @@ ShallowWrapper { "id": 1, "image": "none", "isbn": "9784873113944", - "published_at": "2009-01-26T00:00:00Z", + "published": "2009-01-26T00:00:00Z", "status": false, "tags": Array [ Object { @@ -2228,7 +2228,7 @@ ShallowWrapper { "id": 23, "image": "none", "isbn": "9780987678909", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングRuby", @@ -2239,7 +2239,7 @@ ShallowWrapper { "id": 25, "image": "none", "isbn": "9780987678988", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングR", @@ -2250,7 +2250,7 @@ ShallowWrapper { "id": 20, "image": "none", "isbn": "9780004195095", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": true, "tags": Array [], "title": "スターティングRuby", @@ -2261,7 +2261,7 @@ ShallowWrapper { "id": 26, "image": "none", "isbn": "9789867165289", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "Docker実践ガイド impress top gearシリーズ", @@ -2272,7 +2272,7 @@ ShallowWrapper { "id": 27, "image": "none", "isbn": "9784949999120", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [], "title": "ReactNative", @@ -2283,7 +2283,7 @@ ShallowWrapper { "id": 28, "image": "none", "isbn": "9784063300468", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -2315,7 +2315,7 @@ ShallowWrapper { "id": 29, "image": "none", "isbn": "9784797363821", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -2331,7 +2331,7 @@ ShallowWrapper { "id": 30, "image": "none", "isbn": "9784797372410", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -2351,7 +2351,7 @@ ShallowWrapper { "id": 33, "image": "none", "isbn": "9784834002720", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -2371,7 +2371,7 @@ ShallowWrapper { "id": 34, "image": "none", "isbn": "9784774193830", - "published_at": "2017-11-21T00:00:00Z", + "published": "2017-11-21T00:00:00Z", "status": false, "tags": Array [ Object { @@ -2391,7 +2391,7 @@ ShallowWrapper { "id": 13, "image": "none", "isbn": "9784844338154", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": false, "tags": Array [ Object { @@ -2407,7 +2407,7 @@ ShallowWrapper { "id": 35, "image": "none", "isbn": "9784774172736", - "published_at": "2015-05-15T00:00:00Z", + "published": "2015-05-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -2423,7 +2423,7 @@ ShallowWrapper { "id": 46, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24090349.png", "isbn": "9784048678841", - "published_at": "2010-03-02T00:00:00Z", + "published": "2010-03-02T00:00:00Z", "status": false, "tags": Array [], "title": "リファクタリングRuby", @@ -2434,7 +2434,7 @@ ShallowWrapper { "id": 15, "image": "none", "isbn": "9784873115658", - "published_at": "2016-04-11T00:00:00Z", + "published": "2016-04-11T00:00:00Z", "status": true, "tags": Array [], "title": "リーダブルコード", @@ -2445,7 +2445,7 @@ ShallowWrapper { "id": 48, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24102621.png", "isbn": "9784798118154", - "published_at": "2008-12-03T00:00:00Z", + "published": "2008-12-03T00:00:00Z", "status": false, "tags": Array [], "title": "zsh最強シェル入門", @@ -2456,7 +2456,7 @@ ShallowWrapper { "id": 36, "image": "none", "isbn": "9784873114996", - "published_at": "2018-02-16T00:00:00Z", + "published": "2018-02-16T00:00:00Z", "status": false, "tags": Array [ Object { @@ -2472,7 +2472,7 @@ ShallowWrapper { "id": 47, "image": "none", "isbn": "9784844365501", - "published_at": "2015-12-24T00:00:00Z", + "published": "2015-12-24T00:00:00Z", "status": true, "tags": Array [], "title": "ランディングページデザインメソッド", @@ -2483,7 +2483,7 @@ ShallowWrapper { "id": 43, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SunMar18111526.png", "isbn": "9784569808581", - "published_at": "2018-02-18T00:00:00Z", + "published": "2018-02-18T00:00:00Z", "status": false, "tags": Array [], "title": "てすと", @@ -2494,7 +2494,7 @@ ShallowWrapper { "id": 49, "image": "none", "isbn": "9784865940046", - "published_at": "2018-03-23T00:00:00Z", + "published": "2018-03-23T00:00:00Z", "status": false, "tags": Array [], "title": "てすと", @@ -2505,7 +2505,7 @@ ShallowWrapper { "id": 50, "image": "none", "isbn": "9784048933070", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": true, "tags": Array [], "title": "社畜ちゃん", @@ -2516,7 +2516,7 @@ ShallowWrapper { "id": 51, "image": "none", "isbn": "9784063766417", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン", @@ -2527,7 +2527,7 @@ ShallowWrapper { "id": 52, "image": "none", "isbn": "9784063766424", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン2", @@ -2538,7 +2538,7 @@ ShallowWrapper { "id": 56, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24132702.png", "isbn": "9784063766516", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン3", @@ -2549,7 +2549,7 @@ ShallowWrapper { "id": 58, "image": "none", "isbn": "9784063766639", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": true, "tags": Array [ Object { @@ -2574,7 +2574,7 @@ ShallowWrapper { "id": 2, "image": "none", "isbn": "9784774184111", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": true, "tags": Array [], "title": "javascript ", @@ -2585,7 +2585,7 @@ ShallowWrapper { "id": 14, "image": "none", "isbn": "9784774183923", - "published_at": "2018-02-12T00:00:00Z", + "published": "2018-02-12T00:00:00Z", "status": false, "tags": Array [], "title": "ghj", @@ -2596,7 +2596,7 @@ ShallowWrapper { "id": 16, "image": "none", "isbn": "9780004195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングGo言語", @@ -2607,7 +2607,7 @@ ShallowWrapper { "id": 17, "image": "none", "isbn": "9780104195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -2618,7 +2618,7 @@ ShallowWrapper { "id": 19, "image": "none", "isbn": "9781111115025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -2629,7 +2629,7 @@ ShallowWrapper { "id": 1, "image": "none", "isbn": "9784873113944", - "published_at": "2009-01-26T00:00:00Z", + "published": "2009-01-26T00:00:00Z", "status": false, "tags": Array [ Object { @@ -2645,7 +2645,7 @@ ShallowWrapper { "id": 23, "image": "none", "isbn": "9780987678909", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングRuby", @@ -2656,7 +2656,7 @@ ShallowWrapper { "id": 25, "image": "none", "isbn": "9780987678988", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングR", @@ -2667,7 +2667,7 @@ ShallowWrapper { "id": 20, "image": "none", "isbn": "9780004195095", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": true, "tags": Array [], "title": "スターティングRuby", @@ -2678,7 +2678,7 @@ ShallowWrapper { "id": 26, "image": "none", "isbn": "9789867165289", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "Docker実践ガイド impress top gearシリーズ", @@ -2689,7 +2689,7 @@ ShallowWrapper { "id": 27, "image": "none", "isbn": "9784949999120", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [], "title": "ReactNative", @@ -2700,7 +2700,7 @@ ShallowWrapper { "id": 28, "image": "none", "isbn": "9784063300468", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -2732,7 +2732,7 @@ ShallowWrapper { "id": 29, "image": "none", "isbn": "9784797363821", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -2748,7 +2748,7 @@ ShallowWrapper { "id": 30, "image": "none", "isbn": "9784797372410", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -2768,7 +2768,7 @@ ShallowWrapper { "id": 33, "image": "none", "isbn": "9784834002720", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -2788,7 +2788,7 @@ ShallowWrapper { "id": 34, "image": "none", "isbn": "9784774193830", - "published_at": "2017-11-21T00:00:00Z", + "published": "2017-11-21T00:00:00Z", "status": false, "tags": Array [ Object { @@ -2808,7 +2808,7 @@ ShallowWrapper { "id": 13, "image": "none", "isbn": "9784844338154", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": false, "tags": Array [ Object { @@ -2824,7 +2824,7 @@ ShallowWrapper { "id": 35, "image": "none", "isbn": "9784774172736", - "published_at": "2015-05-15T00:00:00Z", + "published": "2015-05-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -2840,7 +2840,7 @@ ShallowWrapper { "id": 46, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24090349.png", "isbn": "9784048678841", - "published_at": "2010-03-02T00:00:00Z", + "published": "2010-03-02T00:00:00Z", "status": false, "tags": Array [], "title": "リファクタリングRuby", @@ -2851,7 +2851,7 @@ ShallowWrapper { "id": 15, "image": "none", "isbn": "9784873115658", - "published_at": "2016-04-11T00:00:00Z", + "published": "2016-04-11T00:00:00Z", "status": true, "tags": Array [], "title": "リーダブルコード", @@ -2862,7 +2862,7 @@ ShallowWrapper { "id": 48, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24102621.png", "isbn": "9784798118154", - "published_at": "2008-12-03T00:00:00Z", + "published": "2008-12-03T00:00:00Z", "status": false, "tags": Array [], "title": "zsh最強シェル入門", @@ -2873,7 +2873,7 @@ ShallowWrapper { "id": 36, "image": "none", "isbn": "9784873114996", - "published_at": "2018-02-16T00:00:00Z", + "published": "2018-02-16T00:00:00Z", "status": false, "tags": Array [ Object { @@ -2889,7 +2889,7 @@ ShallowWrapper { "id": 47, "image": "none", "isbn": "9784844365501", - "published_at": "2015-12-24T00:00:00Z", + "published": "2015-12-24T00:00:00Z", "status": true, "tags": Array [], "title": "ランディングページデザインメソッド", @@ -2900,7 +2900,7 @@ ShallowWrapper { "id": 43, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SunMar18111526.png", "isbn": "9784569808581", - "published_at": "2018-02-18T00:00:00Z", + "published": "2018-02-18T00:00:00Z", "status": false, "tags": Array [], "title": "てすと", @@ -2911,7 +2911,7 @@ ShallowWrapper { "id": 49, "image": "none", "isbn": "9784865940046", - "published_at": "2018-03-23T00:00:00Z", + "published": "2018-03-23T00:00:00Z", "status": false, "tags": Array [], "title": "てすと", @@ -2922,7 +2922,7 @@ ShallowWrapper { "id": 50, "image": "none", "isbn": "9784048933070", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": true, "tags": Array [], "title": "社畜ちゃん", @@ -2933,7 +2933,7 @@ ShallowWrapper { "id": 51, "image": "none", "isbn": "9784063766417", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン", @@ -2944,7 +2944,7 @@ ShallowWrapper { "id": 52, "image": "none", "isbn": "9784063766424", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン2", @@ -2955,7 +2955,7 @@ ShallowWrapper { "id": 56, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24132702.png", "isbn": "9784063766516", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン3", @@ -2966,7 +2966,7 @@ ShallowWrapper { "id": 58, "image": "none", "isbn": "9784063766639", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": true, "tags": Array [ Object { @@ -3014,7 +3014,7 @@ ShallowWrapper { "id": 2, "image": "none", "isbn": "9784774184111", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": true, "tags": Array [], "title": "javascript ", @@ -3025,7 +3025,7 @@ ShallowWrapper { "id": 14, "image": "none", "isbn": "9784774183923", - "published_at": "2018-02-12T00:00:00Z", + "published": "2018-02-12T00:00:00Z", "status": false, "tags": Array [], "title": "ghj", @@ -3036,7 +3036,7 @@ ShallowWrapper { "id": 16, "image": "none", "isbn": "9780004195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングGo言語", @@ -3047,7 +3047,7 @@ ShallowWrapper { "id": 17, "image": "none", "isbn": "9780104195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -3058,7 +3058,7 @@ ShallowWrapper { "id": 19, "image": "none", "isbn": "9781111115025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -3069,7 +3069,7 @@ ShallowWrapper { "id": 1, "image": "none", "isbn": "9784873113944", - "published_at": "2009-01-26T00:00:00Z", + "published": "2009-01-26T00:00:00Z", "status": false, "tags": Array [ Object { @@ -3085,7 +3085,7 @@ ShallowWrapper { "id": 23, "image": "none", "isbn": "9780987678909", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングRuby", @@ -3096,7 +3096,7 @@ ShallowWrapper { "id": 25, "image": "none", "isbn": "9780987678988", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングR", @@ -3107,7 +3107,7 @@ ShallowWrapper { "id": 20, "image": "none", "isbn": "9780004195095", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": true, "tags": Array [], "title": "スターティングRuby", @@ -3118,7 +3118,7 @@ ShallowWrapper { "id": 26, "image": "none", "isbn": "9789867165289", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "Docker実践ガイド impress top gearシリーズ", @@ -3129,7 +3129,7 @@ ShallowWrapper { "id": 27, "image": "none", "isbn": "9784949999120", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [], "title": "ReactNative", @@ -3140,7 +3140,7 @@ ShallowWrapper { "id": 28, "image": "none", "isbn": "9784063300468", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -3172,7 +3172,7 @@ ShallowWrapper { "id": 29, "image": "none", "isbn": "9784797363821", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -3188,7 +3188,7 @@ ShallowWrapper { "id": 30, "image": "none", "isbn": "9784797372410", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -3208,7 +3208,7 @@ ShallowWrapper { "id": 33, "image": "none", "isbn": "9784834002720", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -3228,7 +3228,7 @@ ShallowWrapper { "id": 34, "image": "none", "isbn": "9784774193830", - "published_at": "2017-11-21T00:00:00Z", + "published": "2017-11-21T00:00:00Z", "status": false, "tags": Array [ Object { @@ -3248,7 +3248,7 @@ ShallowWrapper { "id": 13, "image": "none", "isbn": "9784844338154", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": false, "tags": Array [ Object { @@ -3264,7 +3264,7 @@ ShallowWrapper { "id": 35, "image": "none", "isbn": "9784774172736", - "published_at": "2015-05-15T00:00:00Z", + "published": "2015-05-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -3280,7 +3280,7 @@ ShallowWrapper { "id": 46, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24090349.png", "isbn": "9784048678841", - "published_at": "2010-03-02T00:00:00Z", + "published": "2010-03-02T00:00:00Z", "status": false, "tags": Array [], "title": "リファクタリングRuby", @@ -3291,7 +3291,7 @@ ShallowWrapper { "id": 15, "image": "none", "isbn": "9784873115658", - "published_at": "2016-04-11T00:00:00Z", + "published": "2016-04-11T00:00:00Z", "status": true, "tags": Array [], "title": "リーダブルコード", @@ -3302,7 +3302,7 @@ ShallowWrapper { "id": 48, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24102621.png", "isbn": "9784798118154", - "published_at": "2008-12-03T00:00:00Z", + "published": "2008-12-03T00:00:00Z", "status": false, "tags": Array [], "title": "zsh最強シェル入門", @@ -3313,7 +3313,7 @@ ShallowWrapper { "id": 36, "image": "none", "isbn": "9784873114996", - "published_at": "2018-02-16T00:00:00Z", + "published": "2018-02-16T00:00:00Z", "status": false, "tags": Array [ Object { @@ -3329,7 +3329,7 @@ ShallowWrapper { "id": 47, "image": "none", "isbn": "9784844365501", - "published_at": "2015-12-24T00:00:00Z", + "published": "2015-12-24T00:00:00Z", "status": true, "tags": Array [], "title": "ランディングページデザインメソッド", @@ -3340,7 +3340,7 @@ ShallowWrapper { "id": 43, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SunMar18111526.png", "isbn": "9784569808581", - "published_at": "2018-02-18T00:00:00Z", + "published": "2018-02-18T00:00:00Z", "status": false, "tags": Array [], "title": "てすと", @@ -3351,7 +3351,7 @@ ShallowWrapper { "id": 49, "image": "none", "isbn": "9784865940046", - "published_at": "2018-03-23T00:00:00Z", + "published": "2018-03-23T00:00:00Z", "status": false, "tags": Array [], "title": "てすと", @@ -3362,7 +3362,7 @@ ShallowWrapper { "id": 50, "image": "none", "isbn": "9784048933070", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": true, "tags": Array [], "title": "社畜ちゃん", @@ -3373,7 +3373,7 @@ ShallowWrapper { "id": 51, "image": "none", "isbn": "9784063766417", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン", @@ -3384,7 +3384,7 @@ ShallowWrapper { "id": 52, "image": "none", "isbn": "9784063766424", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン2", @@ -3395,7 +3395,7 @@ ShallowWrapper { "id": 56, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24132702.png", "isbn": "9784063766516", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン3", @@ -3406,7 +3406,7 @@ ShallowWrapper { "id": 58, "image": "none", "isbn": "9784063766639", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": true, "tags": Array [ Object { @@ -3429,7 +3429,7 @@ ShallowWrapper { "id": 2, "image": "none", "isbn": "9784774184111", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": true, "tags": Array [], "title": "javascript ", @@ -3440,7 +3440,7 @@ ShallowWrapper { "id": 14, "image": "none", "isbn": "9784774183923", - "published_at": "2018-02-12T00:00:00Z", + "published": "2018-02-12T00:00:00Z", "status": false, "tags": Array [], "title": "ghj", @@ -3451,7 +3451,7 @@ ShallowWrapper { "id": 16, "image": "none", "isbn": "9780004195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングGo言語", @@ -3462,7 +3462,7 @@ ShallowWrapper { "id": 17, "image": "none", "isbn": "9780104195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -3473,7 +3473,7 @@ ShallowWrapper { "id": 19, "image": "none", "isbn": "9781111115025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -3484,7 +3484,7 @@ ShallowWrapper { "id": 1, "image": "none", "isbn": "9784873113944", - "published_at": "2009-01-26T00:00:00Z", + "published": "2009-01-26T00:00:00Z", "status": false, "tags": Array [ Object { @@ -3500,7 +3500,7 @@ ShallowWrapper { "id": 23, "image": "none", "isbn": "9780987678909", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングRuby", @@ -3511,7 +3511,7 @@ ShallowWrapper { "id": 25, "image": "none", "isbn": "9780987678988", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングR", @@ -3522,7 +3522,7 @@ ShallowWrapper { "id": 20, "image": "none", "isbn": "9780004195095", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": true, "tags": Array [], "title": "スターティングRuby", @@ -3533,7 +3533,7 @@ ShallowWrapper { "id": 26, "image": "none", "isbn": "9789867165289", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "Docker実践ガイド impress top gearシリーズ", @@ -3544,7 +3544,7 @@ ShallowWrapper { "id": 27, "image": "none", "isbn": "9784949999120", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [], "title": "ReactNative", @@ -3555,7 +3555,7 @@ ShallowWrapper { "id": 28, "image": "none", "isbn": "9784063300468", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -3587,7 +3587,7 @@ ShallowWrapper { "id": 29, "image": "none", "isbn": "9784797363821", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -3603,7 +3603,7 @@ ShallowWrapper { "id": 30, "image": "none", "isbn": "9784797372410", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -3623,7 +3623,7 @@ ShallowWrapper { "id": 33, "image": "none", "isbn": "9784834002720", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -3643,7 +3643,7 @@ ShallowWrapper { "id": 34, "image": "none", "isbn": "9784774193830", - "published_at": "2017-11-21T00:00:00Z", + "published": "2017-11-21T00:00:00Z", "status": false, "tags": Array [ Object { @@ -3663,7 +3663,7 @@ ShallowWrapper { "id": 13, "image": "none", "isbn": "9784844338154", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": false, "tags": Array [ Object { @@ -3679,7 +3679,7 @@ ShallowWrapper { "id": 35, "image": "none", "isbn": "9784774172736", - "published_at": "2015-05-15T00:00:00Z", + "published": "2015-05-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -3695,7 +3695,7 @@ ShallowWrapper { "id": 46, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24090349.png", "isbn": "9784048678841", - "published_at": "2010-03-02T00:00:00Z", + "published": "2010-03-02T00:00:00Z", "status": false, "tags": Array [], "title": "リファクタリングRuby", @@ -3706,7 +3706,7 @@ ShallowWrapper { "id": 15, "image": "none", "isbn": "9784873115658", - "published_at": "2016-04-11T00:00:00Z", + "published": "2016-04-11T00:00:00Z", "status": true, "tags": Array [], "title": "リーダブルコード", @@ -3717,7 +3717,7 @@ ShallowWrapper { "id": 48, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24102621.png", "isbn": "9784798118154", - "published_at": "2008-12-03T00:00:00Z", + "published": "2008-12-03T00:00:00Z", "status": false, "tags": Array [], "title": "zsh最強シェル入門", @@ -3728,7 +3728,7 @@ ShallowWrapper { "id": 36, "image": "none", "isbn": "9784873114996", - "published_at": "2018-02-16T00:00:00Z", + "published": "2018-02-16T00:00:00Z", "status": false, "tags": Array [ Object { @@ -3744,7 +3744,7 @@ ShallowWrapper { "id": 47, "image": "none", "isbn": "9784844365501", - "published_at": "2015-12-24T00:00:00Z", + "published": "2015-12-24T00:00:00Z", "status": true, "tags": Array [], "title": "ランディングページデザインメソッド", @@ -3755,7 +3755,7 @@ ShallowWrapper { "id": 43, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SunMar18111526.png", "isbn": "9784569808581", - "published_at": "2018-02-18T00:00:00Z", + "published": "2018-02-18T00:00:00Z", "status": false, "tags": Array [], "title": "てすと", @@ -3766,7 +3766,7 @@ ShallowWrapper { "id": 49, "image": "none", "isbn": "9784865940046", - "published_at": "2018-03-23T00:00:00Z", + "published": "2018-03-23T00:00:00Z", "status": false, "tags": Array [], "title": "てすと", @@ -3777,7 +3777,7 @@ ShallowWrapper { "id": 50, "image": "none", "isbn": "9784048933070", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": true, "tags": Array [], "title": "社畜ちゃん", @@ -3788,7 +3788,7 @@ ShallowWrapper { "id": 51, "image": "none", "isbn": "9784063766417", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン", @@ -3799,7 +3799,7 @@ ShallowWrapper { "id": 52, "image": "none", "isbn": "9784063766424", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン2", @@ -3810,7 +3810,7 @@ ShallowWrapper { "id": 56, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24132702.png", "isbn": "9784063766516", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン3", @@ -3821,7 +3821,7 @@ ShallowWrapper { "id": 58, "image": "none", "isbn": "9784063766639", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": true, "tags": Array [ Object { @@ -3879,7 +3879,7 @@ ShallowWrapper { "id": 2, "image": "none", "isbn": "9784774184111", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": true, "tags": Array [], "title": "javascript ", @@ -3890,7 +3890,7 @@ ShallowWrapper { "id": 14, "image": "none", "isbn": "9784774183923", - "published_at": "2018-02-12T00:00:00Z", + "published": "2018-02-12T00:00:00Z", "status": false, "tags": Array [], "title": "ghj", @@ -3901,7 +3901,7 @@ ShallowWrapper { "id": 16, "image": "none", "isbn": "9780004195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングGo言語", @@ -3912,7 +3912,7 @@ ShallowWrapper { "id": 17, "image": "none", "isbn": "9780104195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -3923,7 +3923,7 @@ ShallowWrapper { "id": 19, "image": "none", "isbn": "9781111115025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -3954,7 +3954,7 @@ ShallowWrapper { "id": 2, "image": "none", "isbn": "9784774184111", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": true, "tags": Array [], "title": "javascript ", @@ -3965,7 +3965,7 @@ ShallowWrapper { "id": 14, "image": "none", "isbn": "9784774183923", - "published_at": "2018-02-12T00:00:00Z", + "published": "2018-02-12T00:00:00Z", "status": false, "tags": Array [], "title": "ghj", @@ -3976,7 +3976,7 @@ ShallowWrapper { "id": 16, "image": "none", "isbn": "9780004195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングGo言語", @@ -3987,7 +3987,7 @@ ShallowWrapper { "id": 17, "image": "none", "isbn": "9780104195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -3998,7 +3998,7 @@ ShallowWrapper { "id": 19, "image": "none", "isbn": "9781111115025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -4014,7 +4014,7 @@ ShallowWrapper { "id": 2, "image": "none", "isbn": "9784774184111", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": true, "tags": Array [], "title": "javascript ", @@ -4025,7 +4025,7 @@ ShallowWrapper { "id": 14, "image": "none", "isbn": "9784774183923", - "published_at": "2018-02-12T00:00:00Z", + "published": "2018-02-12T00:00:00Z", "status": false, "tags": Array [], "title": "ghj", @@ -4036,7 +4036,7 @@ ShallowWrapper { "id": 16, "image": "none", "isbn": "9780004195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングGo言語", @@ -4047,7 +4047,7 @@ ShallowWrapper { "id": 17, "image": "none", "isbn": "9780104195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -4058,7 +4058,7 @@ ShallowWrapper { "id": 19, "image": "none", "isbn": "9781111115025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -4097,7 +4097,7 @@ ShallowWrapper { "id": 2, "image": "none", "isbn": "9784774184111", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": true, "tags": Array [], "title": "javascript ", @@ -4108,7 +4108,7 @@ ShallowWrapper { "id": 14, "image": "none", "isbn": "9784774183923", - "published_at": "2018-02-12T00:00:00Z", + "published": "2018-02-12T00:00:00Z", "status": false, "tags": Array [], "title": "ghj", @@ -4119,7 +4119,7 @@ ShallowWrapper { "id": 16, "image": "none", "isbn": "9780004195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングGo言語", @@ -4130,7 +4130,7 @@ ShallowWrapper { "id": 17, "image": "none", "isbn": "9780104195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -4141,7 +4141,7 @@ ShallowWrapper { "id": 19, "image": "none", "isbn": "9781111115025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -4155,7 +4155,7 @@ ShallowWrapper { "id": 2, "image": "none", "isbn": "9784774184111", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": true, "tags": Array [], "title": "javascript ", @@ -4166,7 +4166,7 @@ ShallowWrapper { "id": 14, "image": "none", "isbn": "9784774183923", - "published_at": "2018-02-12T00:00:00Z", + "published": "2018-02-12T00:00:00Z", "status": false, "tags": Array [], "title": "ghj", @@ -4177,7 +4177,7 @@ ShallowWrapper { "id": 16, "image": "none", "isbn": "9780004195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングGo言語", @@ -4188,7 +4188,7 @@ ShallowWrapper { "id": 17, "image": "none", "isbn": "9780104195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -4199,7 +4199,7 @@ ShallowWrapper { "id": 19, "image": "none", "isbn": "9781111115025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -4239,7 +4239,7 @@ ShallowWrapper { "id": 2, "image": "none", "isbn": "9784774184111", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": true, "tags": Array [], "title": "javascript ", @@ -4250,7 +4250,7 @@ ShallowWrapper { "id": 14, "image": "none", "isbn": "9784774183923", - "published_at": "2018-02-12T00:00:00Z", + "published": "2018-02-12T00:00:00Z", "status": false, "tags": Array [], "title": "ghj", @@ -4261,7 +4261,7 @@ ShallowWrapper { "id": 16, "image": "none", "isbn": "9780004195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングGo言語", @@ -4272,7 +4272,7 @@ ShallowWrapper { "id": 17, "image": "none", "isbn": "9780104195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -4283,7 +4283,7 @@ ShallowWrapper { "id": 19, "image": "none", "isbn": "9781111115025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -4299,7 +4299,7 @@ ShallowWrapper { "id": 2, "image": "none", "isbn": "9784774184111", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": true, "tags": Array [], "title": "javascript ", @@ -4310,7 +4310,7 @@ ShallowWrapper { "id": 14, "image": "none", "isbn": "9784774183923", - "published_at": "2018-02-12T00:00:00Z", + "published": "2018-02-12T00:00:00Z", "status": false, "tags": Array [], "title": "ghj", @@ -4321,7 +4321,7 @@ ShallowWrapper { "id": 16, "image": "none", "isbn": "9780004195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングGo言語", @@ -4332,7 +4332,7 @@ ShallowWrapper { "id": 17, "image": "none", "isbn": "9780104195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -4343,7 +4343,7 @@ ShallowWrapper { "id": 19, "image": "none", "isbn": "9781111115025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -4382,7 +4382,7 @@ ShallowWrapper { "id": 2, "image": "none", "isbn": "9784774184111", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": true, "tags": Array [], "title": "javascript ", @@ -4393,7 +4393,7 @@ ShallowWrapper { "id": 14, "image": "none", "isbn": "9784774183923", - "published_at": "2018-02-12T00:00:00Z", + "published": "2018-02-12T00:00:00Z", "status": false, "tags": Array [], "title": "ghj", @@ -4404,7 +4404,7 @@ ShallowWrapper { "id": 16, "image": "none", "isbn": "9780004195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングGo言語", @@ -4415,7 +4415,7 @@ ShallowWrapper { "id": 17, "image": "none", "isbn": "9780104195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -4426,7 +4426,7 @@ ShallowWrapper { "id": 19, "image": "none", "isbn": "9781111115025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -4440,7 +4440,7 @@ ShallowWrapper { "id": 2, "image": "none", "isbn": "9784774184111", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": true, "tags": Array [], "title": "javascript ", @@ -4451,7 +4451,7 @@ ShallowWrapper { "id": 14, "image": "none", "isbn": "9784774183923", - "published_at": "2018-02-12T00:00:00Z", + "published": "2018-02-12T00:00:00Z", "status": false, "tags": Array [], "title": "ghj", @@ -4462,7 +4462,7 @@ ShallowWrapper { "id": 16, "image": "none", "isbn": "9780004195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングGo言語", @@ -4473,7 +4473,7 @@ ShallowWrapper { "id": 17, "image": "none", "isbn": "9780104195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -4484,7 +4484,7 @@ ShallowWrapper { "id": 19, "image": "none", "isbn": "9781111115025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", diff --git a/src/__tests__/components/__snapshots__/DetailScreen.test.js.snap b/src/__tests__/components/__snapshots__/DetailScreen.test.js.snap index c9c733b..7a32588 100644 --- a/src/__tests__/components/__snapshots__/DetailScreen.test.js.snap +++ b/src/__tests__/components/__snapshots__/DetailScreen.test.js.snap @@ -11,7 +11,7 @@ ShallowWrapper { "id": 2, "image": "none", "isbn": "9784774184111", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": true, "tags": Array [], "title": "javascript ", @@ -27,7 +27,7 @@ ShallowWrapper { "id": 2, "image": "none", "isbn": "9784774184111", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": true, "tags": Array [], "title": "javascript ", @@ -61,63 +61,25 @@ ShallowWrapper { } } > - - - - javascript - - - 出版日: - 2018-02-09T00:00:00Z - - - - + , ], "style": Object { @@ -144,63 +106,25 @@ ShallowWrapper { "nodeType": "class", "props": Object { "children": Array [ - , - - javascript - - - 出版日: - 2018-02-09T00:00:00Z - - , - - - , + , ], "style": Object { "flex": 1, @@ -208,55 +132,22 @@ ShallowWrapper { }, "ref": null, "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "tags": Array [], - }, - "ref": null, - "rendered": null, - "type": [Function], - }, Object { "instance": null, "key": undefined, "nodeType": "class", "props": Object { "children": Array [ - - javascript - , - - 出版日: - 2018-02-09T00:00:00Z - , + , + , ], "style": Object { "flex": 1, - "justifyContent": "center", - "marginLeft": 50, }, }, "ref": null, @@ -264,43 +155,24 @@ ShallowWrapper { Object { "instance": null, "key": undefined, - "nodeType": "class", + "nodeType": "function", "props": Object { - "accessible": true, - "allowFontScaling": true, - "children": "javascript ", - "ellipsizeMode": "tail", - "style": Object { - "fontSize": 20, - "marginBottom": 10, - }, + "tags": Array [], }, "ref": null, - "rendered": "javascript ", + "rendered": null, "type": [Function], }, Object { "instance": null, "key": undefined, - "nodeType": "class", + "nodeType": "function", "props": Object { - "accessible": true, - "allowFontScaling": true, - "children": Array [ - "出版日:", - "2018-02-09T00:00:00Z", - ], - "ellipsizeMode": "tail", - "style": Object { - "color": "#6E6E6E", - "fontSize": 14, - }, + "published": "2018-02-09T00:00:00Z", + "title": "javascript ", }, "ref": null, - "rendered": Array [ - "出版日:", - "2018-02-09T00:00:00Z", - ], + "rendered": null, "type": [Function], }, ], @@ -309,49 +181,13 @@ ShallowWrapper { Object { "instance": null, "key": undefined, - "nodeType": "class", + "nodeType": "function", "props": Object { - "children": Array [ - , - , - ], - "style": Object { - "flex": 1, - "flexDirection": "row", - "marginBottom": 15, - }, + "navigate": undefined, + "status": true, }, "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "status": true, - }, - "ref": null, - "rendered": null, - "type": [Function], - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "navigate": undefined, - "status": true, - }, - "ref": null, - "rendered": null, - "type": [Function], - }, - ], + "rendered": null, "type": [Function], }, ], @@ -377,63 +213,25 @@ ShallowWrapper { } } > - - - javascript - - - 出版日: - 2018-02-09T00:00:00Z - - - - - + , ], "style": Object { @@ -460,63 +258,25 @@ ShallowWrapper { "nodeType": "class", "props": Object { "children": Array [ - , - - - javascript - - - 出版日: - 2018-02-09T00:00:00Z - - , - - , + , ], "style": Object { "flex": 1, @@ -524,55 +284,22 @@ ShallowWrapper { }, "ref": null, "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "tags": Array [], - }, - "ref": null, - "rendered": null, - "type": [Function], - }, Object { "instance": null, "key": undefined, "nodeType": "class", "props": Object { "children": Array [ - - javascript - , - - 出版日: - 2018-02-09T00:00:00Z - , + , + , ], "style": Object { "flex": 1, - "justifyContent": "center", - "marginLeft": 50, }, }, "ref": null, @@ -580,43 +307,24 @@ ShallowWrapper { Object { "instance": null, "key": undefined, - "nodeType": "class", + "nodeType": "function", "props": Object { - "accessible": true, - "allowFontScaling": true, - "children": "javascript ", - "ellipsizeMode": "tail", - "style": Object { - "fontSize": 20, - "marginBottom": 10, - }, + "tags": Array [], }, "ref": null, - "rendered": "javascript ", + "rendered": null, "type": [Function], }, Object { "instance": null, "key": undefined, - "nodeType": "class", + "nodeType": "function", "props": Object { - "accessible": true, - "allowFontScaling": true, - "children": Array [ - "出版日:", - "2018-02-09T00:00:00Z", - ], - "ellipsizeMode": "tail", - "style": Object { - "color": "#6E6E6E", - "fontSize": 14, - }, + "published": "2018-02-09T00:00:00Z", + "title": "javascript ", }, "ref": null, - "rendered": Array [ - "出版日:", - "2018-02-09T00:00:00Z", - ], + "rendered": null, "type": [Function], }, ], @@ -625,49 +333,13 @@ ShallowWrapper { Object { "instance": null, "key": undefined, - "nodeType": "class", + "nodeType": "function", "props": Object { - "children": Array [ - , - , - ], - "style": Object { - "flex": 1, - "flexDirection": "row", - "marginBottom": 15, - }, + "navigate": undefined, + "status": true, }, "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "status": true, - }, - "ref": null, - "rendered": null, - "type": [Function], - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "navigate": undefined, - "status": true, - }, - "ref": null, - "rendered": null, - "type": [Function], - }, - ], + "rendered": null, "type": [Function], }, ], diff --git a/src/__tests__/components/__snapshots__/LentScanScreen.test.js.snap b/src/__tests__/components/__snapshots__/LentScanScreen.test.js.snap new file mode 100644 index 0000000..215a50c --- /dev/null +++ b/src/__tests__/components/__snapshots__/LentScanScreen.test.js.snap @@ -0,0 +1,168 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[` 正しくレンダリングされること 1`] = ` + + + + + 978 + + から始まるバーコードを画面に合わせてください + + + + + + + + + + + + + + + + +`; diff --git a/src/__tests__/containers/__snapshots__/HomeScreeen.js.snap b/src/__tests__/containers/__snapshots__/HomeScreeen.js.snap index e63f11a..4e0435a 100644 --- a/src/__tests__/containers/__snapshots__/HomeScreeen.js.snap +++ b/src/__tests__/containers/__snapshots__/HomeScreeen.js.snap @@ -12,7 +12,7 @@ ShallowWrapper { "id": 2, "image": "none", "isbn": "9784774184111", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": true, "tags": Array [], "title": "javascript ", @@ -23,7 +23,7 @@ ShallowWrapper { "id": 14, "image": "none", "isbn": "9784774183923", - "published_at": "2018-02-12T00:00:00Z", + "published": "2018-02-12T00:00:00Z", "status": false, "tags": Array [], "title": "ghj", @@ -34,7 +34,7 @@ ShallowWrapper { "id": 16, "image": "none", "isbn": "9780004195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングGo言語", @@ -45,7 +45,7 @@ ShallowWrapper { "id": 17, "image": "none", "isbn": "9780104195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -56,7 +56,7 @@ ShallowWrapper { "id": 19, "image": "none", "isbn": "9781111115025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -67,7 +67,7 @@ ShallowWrapper { "id": 1, "image": "none", "isbn": "9784873113944", - "published_at": "2009-01-26T00:00:00Z", + "published": "2009-01-26T00:00:00Z", "status": false, "tags": Array [ Object { @@ -83,7 +83,7 @@ ShallowWrapper { "id": 23, "image": "none", "isbn": "9780987678909", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングRuby", @@ -94,7 +94,7 @@ ShallowWrapper { "id": 25, "image": "none", "isbn": "9780987678988", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングR", @@ -105,7 +105,7 @@ ShallowWrapper { "id": 20, "image": "none", "isbn": "9780004195095", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": true, "tags": Array [], "title": "スターティングRuby", @@ -116,7 +116,7 @@ ShallowWrapper { "id": 26, "image": "none", "isbn": "9789867165289", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "Docker実践ガイド impress top gearシリーズ", @@ -127,7 +127,7 @@ ShallowWrapper { "id": 27, "image": "none", "isbn": "9784949999120", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [], "title": "ReactNative", @@ -138,7 +138,7 @@ ShallowWrapper { "id": 28, "image": "none", "isbn": "9784063300468", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -170,7 +170,7 @@ ShallowWrapper { "id": 29, "image": "none", "isbn": "9784797363821", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -186,7 +186,7 @@ ShallowWrapper { "id": 30, "image": "none", "isbn": "9784797372410", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -206,7 +206,7 @@ ShallowWrapper { "id": 33, "image": "none", "isbn": "9784834002720", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -226,7 +226,7 @@ ShallowWrapper { "id": 34, "image": "none", "isbn": "9784774193830", - "published_at": "2017-11-21T00:00:00Z", + "published": "2017-11-21T00:00:00Z", "status": false, "tags": Array [ Object { @@ -246,7 +246,7 @@ ShallowWrapper { "id": 13, "image": "none", "isbn": "9784844338154", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": false, "tags": Array [ Object { @@ -262,7 +262,7 @@ ShallowWrapper { "id": 35, "image": "none", "isbn": "9784774172736", - "published_at": "2015-05-15T00:00:00Z", + "published": "2015-05-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -278,7 +278,7 @@ ShallowWrapper { "id": 46, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24090349.png", "isbn": "9784048678841", - "published_at": "2010-03-02T00:00:00Z", + "published": "2010-03-02T00:00:00Z", "status": false, "tags": Array [], "title": "リファクタリングRuby", @@ -289,7 +289,7 @@ ShallowWrapper { "id": 15, "image": "none", "isbn": "9784873115658", - "published_at": "2016-04-11T00:00:00Z", + "published": "2016-04-11T00:00:00Z", "status": true, "tags": Array [], "title": "リーダブルコード", @@ -300,7 +300,7 @@ ShallowWrapper { "id": 48, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24102621.png", "isbn": "9784798118154", - "published_at": "2008-12-03T00:00:00Z", + "published": "2008-12-03T00:00:00Z", "status": false, "tags": Array [], "title": "zsh最強シェル入門", @@ -311,7 +311,7 @@ ShallowWrapper { "id": 36, "image": "none", "isbn": "9784873114996", - "published_at": "2018-02-16T00:00:00Z", + "published": "2018-02-16T00:00:00Z", "status": false, "tags": Array [ Object { @@ -327,7 +327,7 @@ ShallowWrapper { "id": 47, "image": "none", "isbn": "9784844365501", - "published_at": "2015-12-24T00:00:00Z", + "published": "2015-12-24T00:00:00Z", "status": true, "tags": Array [], "title": "ランディングページデザインメソッド", @@ -338,7 +338,7 @@ ShallowWrapper { "id": 43, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SunMar18111526.png", "isbn": "9784569808581", - "published_at": "2018-02-18T00:00:00Z", + "published": "2018-02-18T00:00:00Z", "status": false, "tags": Array [], "title": "てすと", @@ -349,7 +349,7 @@ ShallowWrapper { "id": 49, "image": "none", "isbn": "9784865940046", - "published_at": "2018-03-23T00:00:00Z", + "published": "2018-03-23T00:00:00Z", "status": false, "tags": Array [], "title": "てすと", @@ -360,7 +360,7 @@ ShallowWrapper { "id": 50, "image": "none", "isbn": "9784048933070", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": true, "tags": Array [], "title": "社畜ちゃん", @@ -371,7 +371,7 @@ ShallowWrapper { "id": 51, "image": "none", "isbn": "9784063766417", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン", @@ -382,7 +382,7 @@ ShallowWrapper { "id": 52, "image": "none", "isbn": "9784063766424", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン2", @@ -393,7 +393,7 @@ ShallowWrapper { "id": 56, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24132702.png", "isbn": "9784063766516", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン3", @@ -404,7 +404,7 @@ ShallowWrapper { "id": 58, "image": "none", "isbn": "9784063766639", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": true, "tags": Array [ Object { @@ -445,7 +445,7 @@ ShallowWrapper { "id": 2, "image": "none", "isbn": "9784774184111", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": true, "tags": Array [], "title": "javascript ", @@ -456,7 +456,7 @@ ShallowWrapper { "id": 14, "image": "none", "isbn": "9784774183923", - "published_at": "2018-02-12T00:00:00Z", + "published": "2018-02-12T00:00:00Z", "status": false, "tags": Array [], "title": "ghj", @@ -467,7 +467,7 @@ ShallowWrapper { "id": 16, "image": "none", "isbn": "9780004195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングGo言語", @@ -478,7 +478,7 @@ ShallowWrapper { "id": 17, "image": "none", "isbn": "9780104195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -489,7 +489,7 @@ ShallowWrapper { "id": 19, "image": "none", "isbn": "9781111115025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -500,7 +500,7 @@ ShallowWrapper { "id": 1, "image": "none", "isbn": "9784873113944", - "published_at": "2009-01-26T00:00:00Z", + "published": "2009-01-26T00:00:00Z", "status": false, "tags": Array [ Object { @@ -516,7 +516,7 @@ ShallowWrapper { "id": 23, "image": "none", "isbn": "9780987678909", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングRuby", @@ -527,7 +527,7 @@ ShallowWrapper { "id": 25, "image": "none", "isbn": "9780987678988", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングR", @@ -538,7 +538,7 @@ ShallowWrapper { "id": 20, "image": "none", "isbn": "9780004195095", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": true, "tags": Array [], "title": "スターティングRuby", @@ -549,7 +549,7 @@ ShallowWrapper { "id": 26, "image": "none", "isbn": "9789867165289", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "Docker実践ガイド impress top gearシリーズ", @@ -560,7 +560,7 @@ ShallowWrapper { "id": 27, "image": "none", "isbn": "9784949999120", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [], "title": "ReactNative", @@ -571,7 +571,7 @@ ShallowWrapper { "id": 28, "image": "none", "isbn": "9784063300468", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -603,7 +603,7 @@ ShallowWrapper { "id": 29, "image": "none", "isbn": "9784797363821", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -619,7 +619,7 @@ ShallowWrapper { "id": 30, "image": "none", "isbn": "9784797372410", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -639,7 +639,7 @@ ShallowWrapper { "id": 33, "image": "none", "isbn": "9784834002720", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -659,7 +659,7 @@ ShallowWrapper { "id": 34, "image": "none", "isbn": "9784774193830", - "published_at": "2017-11-21T00:00:00Z", + "published": "2017-11-21T00:00:00Z", "status": false, "tags": Array [ Object { @@ -679,7 +679,7 @@ ShallowWrapper { "id": 13, "image": "none", "isbn": "9784844338154", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": false, "tags": Array [ Object { @@ -695,7 +695,7 @@ ShallowWrapper { "id": 35, "image": "none", "isbn": "9784774172736", - "published_at": "2015-05-15T00:00:00Z", + "published": "2015-05-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -711,7 +711,7 @@ ShallowWrapper { "id": 46, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24090349.png", "isbn": "9784048678841", - "published_at": "2010-03-02T00:00:00Z", + "published": "2010-03-02T00:00:00Z", "status": false, "tags": Array [], "title": "リファクタリングRuby", @@ -722,7 +722,7 @@ ShallowWrapper { "id": 15, "image": "none", "isbn": "9784873115658", - "published_at": "2016-04-11T00:00:00Z", + "published": "2016-04-11T00:00:00Z", "status": true, "tags": Array [], "title": "リーダブルコード", @@ -733,7 +733,7 @@ ShallowWrapper { "id": 48, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24102621.png", "isbn": "9784798118154", - "published_at": "2008-12-03T00:00:00Z", + "published": "2008-12-03T00:00:00Z", "status": false, "tags": Array [], "title": "zsh最強シェル入門", @@ -744,7 +744,7 @@ ShallowWrapper { "id": 36, "image": "none", "isbn": "9784873114996", - "published_at": "2018-02-16T00:00:00Z", + "published": "2018-02-16T00:00:00Z", "status": false, "tags": Array [ Object { @@ -760,7 +760,7 @@ ShallowWrapper { "id": 47, "image": "none", "isbn": "9784844365501", - "published_at": "2015-12-24T00:00:00Z", + "published": "2015-12-24T00:00:00Z", "status": true, "tags": Array [], "title": "ランディングページデザインメソッド", @@ -771,7 +771,7 @@ ShallowWrapper { "id": 43, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SunMar18111526.png", "isbn": "9784569808581", - "published_at": "2018-02-18T00:00:00Z", + "published": "2018-02-18T00:00:00Z", "status": false, "tags": Array [], "title": "てすと", @@ -782,7 +782,7 @@ ShallowWrapper { "id": 49, "image": "none", "isbn": "9784865940046", - "published_at": "2018-03-23T00:00:00Z", + "published": "2018-03-23T00:00:00Z", "status": false, "tags": Array [], "title": "てすと", @@ -793,7 +793,7 @@ ShallowWrapper { "id": 50, "image": "none", "isbn": "9784048933070", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": true, "tags": Array [], "title": "社畜ちゃん", @@ -804,7 +804,7 @@ ShallowWrapper { "id": 51, "image": "none", "isbn": "9784063766417", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン", @@ -815,7 +815,7 @@ ShallowWrapper { "id": 52, "image": "none", "isbn": "9784063766424", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン2", @@ -826,7 +826,7 @@ ShallowWrapper { "id": 56, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24132702.png", "isbn": "9784063766516", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン3", @@ -837,7 +837,7 @@ ShallowWrapper { "id": 58, "image": "none", "isbn": "9784063766639", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": true, "tags": Array [ Object { @@ -876,7 +876,7 @@ ShallowWrapper { "id": 2, "image": "none", "isbn": "9784774184111", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": true, "tags": Array [], "title": "javascript ", @@ -887,7 +887,7 @@ ShallowWrapper { "id": 14, "image": "none", "isbn": "9784774183923", - "published_at": "2018-02-12T00:00:00Z", + "published": "2018-02-12T00:00:00Z", "status": false, "tags": Array [], "title": "ghj", @@ -898,7 +898,7 @@ ShallowWrapper { "id": 16, "image": "none", "isbn": "9780004195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングGo言語", @@ -909,7 +909,7 @@ ShallowWrapper { "id": 17, "image": "none", "isbn": "9780104195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -920,7 +920,7 @@ ShallowWrapper { "id": 19, "image": "none", "isbn": "9781111115025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -931,7 +931,7 @@ ShallowWrapper { "id": 1, "image": "none", "isbn": "9784873113944", - "published_at": "2009-01-26T00:00:00Z", + "published": "2009-01-26T00:00:00Z", "status": false, "tags": Array [ Object { @@ -947,7 +947,7 @@ ShallowWrapper { "id": 23, "image": "none", "isbn": "9780987678909", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングRuby", @@ -958,7 +958,7 @@ ShallowWrapper { "id": 25, "image": "none", "isbn": "9780987678988", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングR", @@ -969,7 +969,7 @@ ShallowWrapper { "id": 20, "image": "none", "isbn": "9780004195095", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": true, "tags": Array [], "title": "スターティングRuby", @@ -980,7 +980,7 @@ ShallowWrapper { "id": 26, "image": "none", "isbn": "9789867165289", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "Docker実践ガイド impress top gearシリーズ", @@ -991,7 +991,7 @@ ShallowWrapper { "id": 27, "image": "none", "isbn": "9784949999120", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [], "title": "ReactNative", @@ -1002,7 +1002,7 @@ ShallowWrapper { "id": 28, "image": "none", "isbn": "9784063300468", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1034,7 +1034,7 @@ ShallowWrapper { "id": 29, "image": "none", "isbn": "9784797363821", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1050,7 +1050,7 @@ ShallowWrapper { "id": 30, "image": "none", "isbn": "9784797372410", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1070,7 +1070,7 @@ ShallowWrapper { "id": 33, "image": "none", "isbn": "9784834002720", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1090,7 +1090,7 @@ ShallowWrapper { "id": 34, "image": "none", "isbn": "9784774193830", - "published_at": "2017-11-21T00:00:00Z", + "published": "2017-11-21T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1110,7 +1110,7 @@ ShallowWrapper { "id": 13, "image": "none", "isbn": "9784844338154", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1126,7 +1126,7 @@ ShallowWrapper { "id": 35, "image": "none", "isbn": "9784774172736", - "published_at": "2015-05-15T00:00:00Z", + "published": "2015-05-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1142,7 +1142,7 @@ ShallowWrapper { "id": 46, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24090349.png", "isbn": "9784048678841", - "published_at": "2010-03-02T00:00:00Z", + "published": "2010-03-02T00:00:00Z", "status": false, "tags": Array [], "title": "リファクタリングRuby", @@ -1153,7 +1153,7 @@ ShallowWrapper { "id": 15, "image": "none", "isbn": "9784873115658", - "published_at": "2016-04-11T00:00:00Z", + "published": "2016-04-11T00:00:00Z", "status": true, "tags": Array [], "title": "リーダブルコード", @@ -1164,7 +1164,7 @@ ShallowWrapper { "id": 48, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24102621.png", "isbn": "9784798118154", - "published_at": "2008-12-03T00:00:00Z", + "published": "2008-12-03T00:00:00Z", "status": false, "tags": Array [], "title": "zsh最強シェル入門", @@ -1175,7 +1175,7 @@ ShallowWrapper { "id": 36, "image": "none", "isbn": "9784873114996", - "published_at": "2018-02-16T00:00:00Z", + "published": "2018-02-16T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1191,7 +1191,7 @@ ShallowWrapper { "id": 47, "image": "none", "isbn": "9784844365501", - "published_at": "2015-12-24T00:00:00Z", + "published": "2015-12-24T00:00:00Z", "status": true, "tags": Array [], "title": "ランディングページデザインメソッド", @@ -1202,7 +1202,7 @@ ShallowWrapper { "id": 43, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SunMar18111526.png", "isbn": "9784569808581", - "published_at": "2018-02-18T00:00:00Z", + "published": "2018-02-18T00:00:00Z", "status": false, "tags": Array [], "title": "てすと", @@ -1213,7 +1213,7 @@ ShallowWrapper { "id": 49, "image": "none", "isbn": "9784865940046", - "published_at": "2018-03-23T00:00:00Z", + "published": "2018-03-23T00:00:00Z", "status": false, "tags": Array [], "title": "てすと", @@ -1224,7 +1224,7 @@ ShallowWrapper { "id": 50, "image": "none", "isbn": "9784048933070", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": true, "tags": Array [], "title": "社畜ちゃん", @@ -1235,7 +1235,7 @@ ShallowWrapper { "id": 51, "image": "none", "isbn": "9784063766417", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン", @@ -1246,7 +1246,7 @@ ShallowWrapper { "id": 52, "image": "none", "isbn": "9784063766424", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン2", @@ -1257,7 +1257,7 @@ ShallowWrapper { "id": 56, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24132702.png", "isbn": "9784063766516", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン3", @@ -1268,7 +1268,7 @@ ShallowWrapper { "id": 58, "image": "none", "isbn": "9784063766639", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": true, "tags": Array [ Object { @@ -1309,7 +1309,7 @@ ShallowWrapper { "id": 2, "image": "none", "isbn": "9784774184111", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": true, "tags": Array [], "title": "javascript ", @@ -1320,7 +1320,7 @@ ShallowWrapper { "id": 14, "image": "none", "isbn": "9784774183923", - "published_at": "2018-02-12T00:00:00Z", + "published": "2018-02-12T00:00:00Z", "status": false, "tags": Array [], "title": "ghj", @@ -1331,7 +1331,7 @@ ShallowWrapper { "id": 16, "image": "none", "isbn": "9780004195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングGo言語", @@ -1342,7 +1342,7 @@ ShallowWrapper { "id": 17, "image": "none", "isbn": "9780104195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -1353,7 +1353,7 @@ ShallowWrapper { "id": 19, "image": "none", "isbn": "9781111115025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -1364,7 +1364,7 @@ ShallowWrapper { "id": 1, "image": "none", "isbn": "9784873113944", - "published_at": "2009-01-26T00:00:00Z", + "published": "2009-01-26T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1380,7 +1380,7 @@ ShallowWrapper { "id": 23, "image": "none", "isbn": "9780987678909", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングRuby", @@ -1391,7 +1391,7 @@ ShallowWrapper { "id": 25, "image": "none", "isbn": "9780987678988", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングR", @@ -1402,7 +1402,7 @@ ShallowWrapper { "id": 20, "image": "none", "isbn": "9780004195095", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": true, "tags": Array [], "title": "スターティングRuby", @@ -1413,7 +1413,7 @@ ShallowWrapper { "id": 26, "image": "none", "isbn": "9789867165289", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "Docker実践ガイド impress top gearシリーズ", @@ -1424,7 +1424,7 @@ ShallowWrapper { "id": 27, "image": "none", "isbn": "9784949999120", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [], "title": "ReactNative", @@ -1435,7 +1435,7 @@ ShallowWrapper { "id": 28, "image": "none", "isbn": "9784063300468", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1467,7 +1467,7 @@ ShallowWrapper { "id": 29, "image": "none", "isbn": "9784797363821", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1483,7 +1483,7 @@ ShallowWrapper { "id": 30, "image": "none", "isbn": "9784797372410", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1503,7 +1503,7 @@ ShallowWrapper { "id": 33, "image": "none", "isbn": "9784834002720", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1523,7 +1523,7 @@ ShallowWrapper { "id": 34, "image": "none", "isbn": "9784774193830", - "published_at": "2017-11-21T00:00:00Z", + "published": "2017-11-21T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1543,7 +1543,7 @@ ShallowWrapper { "id": 13, "image": "none", "isbn": "9784844338154", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1559,7 +1559,7 @@ ShallowWrapper { "id": 35, "image": "none", "isbn": "9784774172736", - "published_at": "2015-05-15T00:00:00Z", + "published": "2015-05-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1575,7 +1575,7 @@ ShallowWrapper { "id": 46, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24090349.png", "isbn": "9784048678841", - "published_at": "2010-03-02T00:00:00Z", + "published": "2010-03-02T00:00:00Z", "status": false, "tags": Array [], "title": "リファクタリングRuby", @@ -1586,7 +1586,7 @@ ShallowWrapper { "id": 15, "image": "none", "isbn": "9784873115658", - "published_at": "2016-04-11T00:00:00Z", + "published": "2016-04-11T00:00:00Z", "status": true, "tags": Array [], "title": "リーダブルコード", @@ -1597,7 +1597,7 @@ ShallowWrapper { "id": 48, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24102621.png", "isbn": "9784798118154", - "published_at": "2008-12-03T00:00:00Z", + "published": "2008-12-03T00:00:00Z", "status": false, "tags": Array [], "title": "zsh最強シェル入門", @@ -1608,7 +1608,7 @@ ShallowWrapper { "id": 36, "image": "none", "isbn": "9784873114996", - "published_at": "2018-02-16T00:00:00Z", + "published": "2018-02-16T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1624,7 +1624,7 @@ ShallowWrapper { "id": 47, "image": "none", "isbn": "9784844365501", - "published_at": "2015-12-24T00:00:00Z", + "published": "2015-12-24T00:00:00Z", "status": true, "tags": Array [], "title": "ランディングページデザインメソッド", @@ -1635,7 +1635,7 @@ ShallowWrapper { "id": 43, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SunMar18111526.png", "isbn": "9784569808581", - "published_at": "2018-02-18T00:00:00Z", + "published": "2018-02-18T00:00:00Z", "status": false, "tags": Array [], "title": "てすと", @@ -1646,7 +1646,7 @@ ShallowWrapper { "id": 49, "image": "none", "isbn": "9784865940046", - "published_at": "2018-03-23T00:00:00Z", + "published": "2018-03-23T00:00:00Z", "status": false, "tags": Array [], "title": "てすと", @@ -1657,7 +1657,7 @@ ShallowWrapper { "id": 50, "image": "none", "isbn": "9784048933070", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": true, "tags": Array [], "title": "社畜ちゃん", @@ -1668,7 +1668,7 @@ ShallowWrapper { "id": 51, "image": "none", "isbn": "9784063766417", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン", @@ -1679,7 +1679,7 @@ ShallowWrapper { "id": 52, "image": "none", "isbn": "9784063766424", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン2", @@ -1690,7 +1690,7 @@ ShallowWrapper { "id": 56, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24132702.png", "isbn": "9784063766516", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン3", @@ -1701,7 +1701,7 @@ ShallowWrapper { "id": 58, "image": "none", "isbn": "9784063766639", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": true, "tags": Array [ Object { @@ -1740,7 +1740,7 @@ ShallowWrapper { "id": 2, "image": "none", "isbn": "9784774184111", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": true, "tags": Array [], "title": "javascript ", @@ -1751,7 +1751,7 @@ ShallowWrapper { "id": 14, "image": "none", "isbn": "9784774183923", - "published_at": "2018-02-12T00:00:00Z", + "published": "2018-02-12T00:00:00Z", "status": false, "tags": Array [], "title": "ghj", @@ -1762,7 +1762,7 @@ ShallowWrapper { "id": 16, "image": "none", "isbn": "9780004195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングGo言語", @@ -1773,7 +1773,7 @@ ShallowWrapper { "id": 17, "image": "none", "isbn": "9780104195025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -1784,7 +1784,7 @@ ShallowWrapper { "id": 19, "image": "none", "isbn": "9781111115025", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングC言語", @@ -1795,7 +1795,7 @@ ShallowWrapper { "id": 1, "image": "none", "isbn": "9784873113944", - "published_at": "2009-01-26T00:00:00Z", + "published": "2009-01-26T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1811,7 +1811,7 @@ ShallowWrapper { "id": 23, "image": "none", "isbn": "9780987678909", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングRuby", @@ -1822,7 +1822,7 @@ ShallowWrapper { "id": 25, "image": "none", "isbn": "9780987678988", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "スターティングR", @@ -1833,7 +1833,7 @@ ShallowWrapper { "id": 20, "image": "none", "isbn": "9780004195095", - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "status": true, "tags": Array [], "title": "スターティングRuby", @@ -1844,7 +1844,7 @@ ShallowWrapper { "id": 26, "image": "none", "isbn": "9789867165289", - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "status": false, "tags": Array [], "title": "Docker実践ガイド impress top gearシリーズ", @@ -1855,7 +1855,7 @@ ShallowWrapper { "id": 27, "image": "none", "isbn": "9784949999120", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [], "title": "ReactNative", @@ -1866,7 +1866,7 @@ ShallowWrapper { "id": 28, "image": "none", "isbn": "9784063300468", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1898,7 +1898,7 @@ ShallowWrapper { "id": 29, "image": "none", "isbn": "9784797363821", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1914,7 +1914,7 @@ ShallowWrapper { "id": 30, "image": "none", "isbn": "9784797372410", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1934,7 +1934,7 @@ ShallowWrapper { "id": 33, "image": "none", "isbn": "9784834002720", - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1954,7 +1954,7 @@ ShallowWrapper { "id": 34, "image": "none", "isbn": "9784774193830", - "published_at": "2017-11-21T00:00:00Z", + "published": "2017-11-21T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1974,7 +1974,7 @@ ShallowWrapper { "id": 13, "image": "none", "isbn": "9784844338154", - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "status": false, "tags": Array [ Object { @@ -1990,7 +1990,7 @@ ShallowWrapper { "id": 35, "image": "none", "isbn": "9784774172736", - "published_at": "2015-05-15T00:00:00Z", + "published": "2015-05-15T00:00:00Z", "status": false, "tags": Array [ Object { @@ -2006,7 +2006,7 @@ ShallowWrapper { "id": 46, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24090349.png", "isbn": "9784048678841", - "published_at": "2010-03-02T00:00:00Z", + "published": "2010-03-02T00:00:00Z", "status": false, "tags": Array [], "title": "リファクタリングRuby", @@ -2017,7 +2017,7 @@ ShallowWrapper { "id": 15, "image": "none", "isbn": "9784873115658", - "published_at": "2016-04-11T00:00:00Z", + "published": "2016-04-11T00:00:00Z", "status": true, "tags": Array [], "title": "リーダブルコード", @@ -2028,7 +2028,7 @@ ShallowWrapper { "id": 48, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24102621.png", "isbn": "9784798118154", - "published_at": "2008-12-03T00:00:00Z", + "published": "2008-12-03T00:00:00Z", "status": false, "tags": Array [], "title": "zsh最強シェル入門", @@ -2039,7 +2039,7 @@ ShallowWrapper { "id": 36, "image": "none", "isbn": "9784873114996", - "published_at": "2018-02-16T00:00:00Z", + "published": "2018-02-16T00:00:00Z", "status": false, "tags": Array [ Object { @@ -2055,7 +2055,7 @@ ShallowWrapper { "id": 47, "image": "none", "isbn": "9784844365501", - "published_at": "2015-12-24T00:00:00Z", + "published": "2015-12-24T00:00:00Z", "status": true, "tags": Array [], "title": "ランディングページデザインメソッド", @@ -2066,7 +2066,7 @@ ShallowWrapper { "id": 43, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SunMar18111526.png", "isbn": "9784569808581", - "published_at": "2018-02-18T00:00:00Z", + "published": "2018-02-18T00:00:00Z", "status": false, "tags": Array [], "title": "てすと", @@ -2077,7 +2077,7 @@ ShallowWrapper { "id": 49, "image": "none", "isbn": "9784865940046", - "published_at": "2018-03-23T00:00:00Z", + "published": "2018-03-23T00:00:00Z", "status": false, "tags": Array [], "title": "てすと", @@ -2088,7 +2088,7 @@ ShallowWrapper { "id": 50, "image": "none", "isbn": "9784048933070", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": true, "tags": Array [], "title": "社畜ちゃん", @@ -2099,7 +2099,7 @@ ShallowWrapper { "id": 51, "image": "none", "isbn": "9784063766417", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン", @@ -2110,7 +2110,7 @@ ShallowWrapper { "id": 52, "image": "none", "isbn": "9784063766424", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン2", @@ -2121,7 +2121,7 @@ ShallowWrapper { "id": 56, "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24132702.png", "isbn": "9784063766516", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": false, "tags": Array [], "title": "デビルマン3", @@ -2132,7 +2132,7 @@ ShallowWrapper { "id": 58, "image": "none", "isbn": "9784063766639", - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "status": true, "tags": Array [ Object { diff --git a/src/__tests__/reducers/book.test.js b/src/__tests__/reducers/book.test.js index 58547ca..639f9fe 100644 --- a/src/__tests__/reducers/book.test.js +++ b/src/__tests__/reducers/book.test.js @@ -1,6 +1,9 @@ import reducer from '../../reducers/book'; import _books from '../../api/books.json'; -import { GET_BOOK, GET_BOOKS } from '../../constants/actionTypes'; +import { + GET_BOOK, + GET_BOOKS, +} from '../../constants/actionTypes'; describe('book Reducer', () => { test('初期値を返すこと', () => { @@ -14,7 +17,7 @@ describe('book Reducer', () => { expect(result).toEqual(expected); }); - test('アクションがGET_BOOKSのときpayloadとstateを返すこと', () => { + test('GET_BOOKSアクションが正しく処理されること', () => { const state = { books: _books.slice(0, 5), book: _books[0], @@ -34,7 +37,7 @@ describe('book Reducer', () => { expect(result).toEqual(expected); }); - test('GET_BOOKのpayloadとstateを返すこと', () => { + test('GET_BOOKアクションが正しく処理されること', () => { const state = { books: _books, book: _books[1], diff --git a/src/__tests__/reducers/scan.test.js b/src/__tests__/reducers/scan.test.js new file mode 100644 index 0000000..cc052a1 --- /dev/null +++ b/src/__tests__/reducers/scan.test.js @@ -0,0 +1,105 @@ +import reducer from '../../reducers/scan'; +import { + PERMISSIONS_GRANTED, + PERMISSIONS_DENIED, + ISBN_READING, + ISBN_OK, + ISBN_INVALID, +} from '../../constants/actionTypes'; + +describe('scan Reducer', () => { + test('初期化値を返すこと', () => { + const state = undefined; + const action = {}; + const result = reducer(state, action); + const expected = { + permissions: 'denied', + status: 'reading', + isbn: null, + }; + + expect(result).toEqual(expected); + }); + + test('PERMISSIONS_GRANTEDアクションが正しく処理されること', () => { + const state = { + permissions: 'denied', + }; + const action = { + type: PERMISSIONS_GRANTED, + }; + const result = reducer(state, action); + const expected = { + permissions: 'granted', + }; + + expect(result).toEqual(expected); + }); + + test('PERMISSIONS_DENIEDアクションが正しく処理されること', () => { + const state = { + permissions: 'granted', + }; + const action = { + type: PERMISSIONS_DENIED, + }; + const result = reducer(state, action); + const expected = { + permissions: 'denied', + }; + + expect(result).toEqual(expected); + }); + + test('ISBN_READINGアクションが正しく処理されること', () => { + const state = { + status: 'invalid', + }; + const action = { + type: ISBN_READING, + }; + const result = reducer(state, action); + const expected = { + status: 'reading', + isbn: null, + }; + + expect(result).toEqual(expected); + }); + + test('ISBN_OKアクションが正しく処理されること', () => { + const isbn = '1234567890123'; + const state = { + status: 'reading', + }; + const action = { + type: ISBN_OK, + payload: { + isbn, + }, + }; + const result = reducer(state, action); + const expected = { + status: 'ok', + isbn, + }; + + expect(result).toEqual(expected); + }); + + test('ISBN_INVALIDアクションが正しく処理されること', () => { + const state = { + status: 'reading', + }; + const action = { + type: ISBN_INVALID, + }; + const result = reducer(state, action); + const expected = { + status: 'invalid', + isbn: null, + }; + + expect(result).toEqual(expected); + }); +}); diff --git a/src/actions/index.js b/src/actions/index.js index 626c3e4..29aec7d 100644 --- a/src/actions/index.js +++ b/src/actions/index.js @@ -1,4 +1,6 @@ +import API_ENDPOINT from '../utils/endpoint'; import server from '../api/server'; +import * as api from '../api'; import * as types from '../constants/actionTypes'; const request = () => ({ @@ -25,7 +27,8 @@ const getBooks = books => ({ export const getAllMockBooks = () => (dispatch) => { dispatch(request()); - server.getBooks() + + return server.getBooks() .then((books) => { dispatch(requestSuccess()); dispatch(getBooks(books)); @@ -38,14 +41,57 @@ export const getAllMockBooks = () => (dispatch) => { export const getAllBooks = () => (dispatch) => { dispatch(request()); - return fetch('https://example.com/books') - .then(response => response.json()) - .then((books) => { + return fetch(`${API_ENDPOINT}/books`) + .then((response) => { + if (response.ok) { + return response.json(); + } + throw new Error(response); + }) + .then((resJson) => { dispatch(requestSuccess()); - dispatch(getBooks(books)); + dispatch(getBooks(resJson.books)); }) .catch((error) => { dispatch(requestFail(JSON.parse(error))); }); }; +export const permissionsGranted = () => ({ + type: types.PERMISSIONS_GRANTED, +}); + +export const permissionsDenied = () => ({ + type: types.PERMISSIONS_DENIED, +}); + +export const isbnReading = () => ({ + type: types.ISBN_READING, +}); + +export const isbnOk = isbn => ({ + type: types.ISBN_OK, + payload: { + isbn, + }, +}); + +export const isbnInvalid = () => ({ + type: types.ISBN_INVALID, +}); + +export const requestChangeStatus = (isbn, status) => (dispatch) => { + dispatch(request()); + + api.changeStatus(isbn, status) + .then((response) => { + console.log(response.json); + if (response.ok) { + return dispatch(requestSuccess()); + } + throw new Error(response); + }) + .catch((error) => { + dispatch(requestFail(JSON.parse(error))); + }); +}; diff --git a/src/api/books.json b/src/api/books.json index 5131ed6..2ac57ea 100644 --- a/src/api/books.json +++ b/src/api/books.json @@ -4,7 +4,7 @@ "title": "javascript ", "image": "none", "status": true, - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "tags": [], "isbn": "9784774184111", "created_at": "2018-03-09T00:00:00Z", @@ -15,7 +15,7 @@ "title": "ghj", "image": "none", "status": false, - "published_at": "2018-02-12T00:00:00Z", + "published": "2018-02-12T00:00:00Z", "tags": [], "isbn": "9784774183923", "created_at": "2018-03-12T00:00:00Z", @@ -26,7 +26,7 @@ "title": "スターティングGo言語", "image": "none", "status": false, - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "tags": [], "isbn": "9780004195025", "created_at": "2018-03-13T00:00:00Z", @@ -37,7 +37,7 @@ "title": "スターティングC言語", "image": "none", "status": false, - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "tags": [], "isbn": "9780104195025", "created_at": "2018-03-13T00:00:00Z", @@ -48,7 +48,7 @@ "title": "スターティングC言語", "image": "none", "status": false, - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "tags": [], "isbn": "9781111115025", "created_at": "2018-03-13T00:00:00Z", @@ -59,7 +59,7 @@ "title": "プログラミング言語 Ruby", "image": "none", "status": false, - "published_at": "2009-01-26T00:00:00Z", + "published": "2009-01-26T00:00:00Z", "tags": [ { "id": 1, @@ -75,7 +75,7 @@ "title": "スターティングRuby", "image": "none", "status": false, - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "tags": [], "isbn": "9780987678909", "created_at": "2018-03-14T00:00:00Z", @@ -86,7 +86,7 @@ "title": "スターティングR", "image": "none", "status": false, - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "tags": [], "isbn": "9780987678988", "created_at": "2018-03-14T00:00:00Z", @@ -97,7 +97,7 @@ "title": "スターティングRuby", "image": "none", "status": true, - "published_at": "2014-04-09T00:00:00Z", + "published": "2014-04-09T00:00:00Z", "tags": [], "isbn": "9780004195095", "created_at": "2018-03-14T00:00:00Z", @@ -108,7 +108,7 @@ "title": "Docker実践ガイド impress top gearシリーズ", "image": "none", "status": false, - "published_at": "2016-04-09T00:00:00Z", + "published": "2016-04-09T00:00:00Z", "tags": [], "isbn": "9789867165289", "created_at": "2018-03-15T00:00:00Z", @@ -119,7 +119,7 @@ "title": "ReactNative", "image": "none", "status": false, - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "tags": [], "isbn": "9784949999120", "created_at": "2018-03-15T00:00:00Z", @@ -130,7 +130,7 @@ "title": "タグテスト", "image": "none", "status": false, - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "tags": [ { "id": 11, @@ -162,7 +162,7 @@ "title": "ReactNative", "image": "none", "status": false, - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "tags": [ { "id": 12, @@ -178,7 +178,7 @@ "title": "React", "image": "none", "status": false, - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "tags": [ { "id": 1, @@ -198,7 +198,7 @@ "title": "バーコード最終確認", "image": "none", "status": false, - "published_at": "2018-02-15T00:00:00Z", + "published": "2018-02-15T00:00:00Z", "tags": [ { "id": 13, @@ -218,7 +218,7 @@ "title": "intellj IDEA", "image": "none", "status": false, - "published_at": "2017-11-21T00:00:00Z", + "published": "2017-11-21T00:00:00Z", "tags": [ { "id": 15, @@ -238,7 +238,7 @@ "title": "基礎Ruby on Rails", "image": "none", "status": false, - "published_at": "2018-02-09T00:00:00Z", + "published": "2018-02-09T00:00:00Z", "tags": [ { "id": 1, @@ -254,7 +254,7 @@ "title": "jquery", "image": "none", "status": false, - "published_at": "2015-05-15T00:00:00Z", + "published": "2015-05-15T00:00:00Z", "tags": [ { "id": 12, @@ -270,7 +270,7 @@ "title": "リファクタリングRuby", "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24090349.png", "status": false, - "published_at": "2010-03-02T00:00:00Z", + "published": "2010-03-02T00:00:00Z", "tags": [], "isbn": "9784048678841", "created_at": "2018-03-24T00:00:00Z", @@ -281,7 +281,7 @@ "title": "リーダブルコード", "image": "none", "status": true, - "published_at": "2016-04-11T00:00:00Z", + "published": "2016-04-11T00:00:00Z", "tags": [], "isbn": "9784873115658", "created_at": "2018-03-12T00:00:00Z", @@ -292,7 +292,7 @@ "title": "zsh最強シェル入門", "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24102621.png", "status": false, - "published_at": "2008-12-03T00:00:00Z", + "published": "2008-12-03T00:00:00Z", "tags": [], "isbn": "9784798118154", "created_at": "2018-03-24T00:00:00Z", @@ -303,7 +303,7 @@ "title": "BeingGeek", "image": "none", "status": false, - "published_at": "2018-02-16T00:00:00Z", + "published": "2018-02-16T00:00:00Z", "tags": [ { "id": 17, @@ -319,7 +319,7 @@ "title": "ランディングページデザインメソッド", "image": "none", "status": true, - "published_at": "2015-12-24T00:00:00Z", + "published": "2015-12-24T00:00:00Z", "tags": [], "isbn": "9784844365501", "created_at": "2018-03-24T00:00:00Z", @@ -330,7 +330,7 @@ "title": "てすと", "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SunMar18111526.png", "status": false, - "published_at": "2018-02-18T00:00:00Z", + "published": "2018-02-18T00:00:00Z", "tags": [], "isbn": "9784569808581", "created_at": "2018-03-18T00:00:00Z", @@ -341,7 +341,7 @@ "title": "てすと", "image": "none", "status": false, - "published_at": "2018-03-23T00:00:00Z", + "published": "2018-03-23T00:00:00Z", "tags": [], "isbn": "9784865940046", "created_at": "2018-03-24T00:00:00Z", @@ -352,7 +352,7 @@ "title": "社畜ちゃん", "image": "none", "status": true, - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "tags": [], "isbn": "9784048933070", "created_at": "2018-03-24T00:00:00Z", @@ -363,7 +363,7 @@ "title": "デビルマン", "image": "none", "status": false, - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "tags": [], "isbn": "9784063766417", "created_at": "2018-03-24T00:00:00Z", @@ -374,7 +374,7 @@ "title": "デビルマン2", "image": "none", "status": false, - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "tags": [], "isbn": "9784063766424", "created_at": "2018-03-24T00:00:00Z", @@ -385,7 +385,7 @@ "title": "デビルマン3", "image": "https://s3-ap-northeast-1.amazonaws.com/book-seeker/static/images/SatMar24132702.png", "status": false, - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "tags": [], "isbn": "9784063766516", "created_at": "2018-03-24T00:00:00Z", @@ -396,7 +396,7 @@ "title": "デビルマン4", "image": "none", "status": true, - "published_at": "2018-02-24T00:00:00Z", + "published": "2018-02-24T00:00:00Z", "tags": [ { "id": 2, diff --git a/src/api/index.js b/src/api/index.js new file mode 100644 index 0000000..d1a2392 --- /dev/null +++ b/src/api/index.js @@ -0,0 +1,15 @@ +import API_ENDPOINT from '../utils/endpoint'; + +export const changeStatus = (isbn, status) => ( + fetch(`${API_ENDPOINT}/books`, { + method: 'PUT', + headers: { + Accept: 'application/json', + 'Content-Type': 'application/json', + }, + body: JSON.stringify({ + isbn, + status, + }), + }) +); diff --git a/src/components/DetailScreen/BookImage.js b/src/components/DetailScreen/BookImage.js index f0604e1..abea93e 100644 --- a/src/components/DetailScreen/BookImage.js +++ b/src/components/DetailScreen/BookImage.js @@ -7,18 +7,28 @@ import { import { bookImage as styles } from './Styles'; -const BookImage = ({ uri }) => { - let imageUri = uri; - if (imageUri === 'none') { - imageUri = 'https://facebook.github.io/react/logo-og.png'; - } +const NoImage = () => ( + +); - return ( - - - - ); -}; +const NetworkImage = ({ uri }) => ( + +); + +const BookImage = ({ uri }) => ( + + {uri ? + + : + } + +); BookImage.propTypes = { uri: PropTypes.string.isRequired, diff --git a/src/components/DetailScreen/BookInfo.js b/src/components/DetailScreen/BookInfo.js new file mode 100644 index 0000000..e69de29 diff --git a/src/components/DetailScreen/BorrowReturnButton.js b/src/components/DetailScreen/BorrowReturnButton.js new file mode 100644 index 0000000..02cf8b9 --- /dev/null +++ b/src/components/DetailScreen/BorrowReturnButton.js @@ -0,0 +1,58 @@ +import React from 'react'; +import PropTypes from 'prop-types'; +import { View } from 'react-native'; +import { Button } from 'react-native-elements'; +import { MaterialCommunityIcons } from '@expo/vector-icons'; + +import { borrowReturnButton as styles } from './Styles'; + +const RenderButton = (props) => { + const { + title, + bgColor, + action, + navigate, + } = props; + + return ( + +