diff --git a/types/bookshelf/bookshelf-tests.ts b/types/bookshelf/bookshelf-tests.ts index 98fd0f4599..61718a4274 100644 --- a/types/bookshelf/bookshelf-tests.ts +++ b/types/bookshelf/bookshelf-tests.ts @@ -257,11 +257,6 @@ class Library extends bookshelf.Model { /* new Model(), see http://bookshelfjs.org/#Model */ { - new Book({ - title: "One Thousand and One Nights", - author: "Scheherazade" - }); - class Book extends bookshelf.Model { get tableName() { return 'documents'; } @@ -273,6 +268,11 @@ class Library extends bookshelf.Model { }); } } + + new Book({ + title: "One Thousand and One Nights", + author: "Scheherazade" + }); } /* model.initialize(), see http://bookshelfjs.org/#Model-instance-initialize */