Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/src/scripts/books.dart
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class BookInfo {
/// How many people rated the book
final int ratingsCount;

/// Wether the book is mature or not
/// Whether the book is mature or not
final String maturityRating;

/// The content version
Expand Down
8 changes: 4 additions & 4 deletions test/book_finder_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ void main() {
expect(book.info.language, 'en');
expect(book.info.description.isNotEmpty, true);
expect(book.info.maturityRating, 'NOT_MATURE');
expect(book.info.contentVersion, 'preview-1.0.0');

expect(book.info.contentVersion, '0.0.1.0.preview.0');
expect(book.info.industryIdentifiers.first.type, 'ISBN_10');
expect(book.info.industryIdentifiers.first.identifier, '1534461655');
});
Expand Down Expand Up @@ -123,7 +124,7 @@ void main() {
);

expect(books.first.info.title.toLowerCase(),
"harry potter and the philosopher's stone");
"harry potter and the sorcerers stone");

/// .inauthor
books = await queryBooks(
Expand All @@ -148,8 +149,7 @@ void main() {
);

if (books.isNotEmpty) {
expect(books.first.info.publisher.toLowerCase(),
"scholastic early learners");
expect(books.first.info.publisher.toLowerCase(), "cartwheel books");
}

/// .isbn
Expand Down