Skip to content

Commit

Permalink
Removed redundant tests
Browse files Browse the repository at this point in the history
refs TryGhost#9178

- These test belong to knex/bookshelf
  • Loading branch information
naz committed Mar 25, 2019
1 parent 3a8eac3 commit 467ccc4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
11 changes: 0 additions & 11 deletions core/test/regression/models/model_posts_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,17 +192,6 @@ describe('Post Model', function () {
}).catch(done);
});

it('can NOT findPage for a page that overflows the datatype', function (done) {
models.Post.findPage({page: 5700000000055345439587894375457849375284932759842375894372589243758947325894375894275894275894725897432859724309})
.then(function (paginationResult) {
should.exist(paginationResult.meta);

paginationResult.meta.pagination.page.should.be.a.Number();

done();
}).catch(done);
});

// @TODO: this test case fails for mysql currently if you run all regression tests, the test does not fail if you run this as a single test
describe.skip('with more posts/tags', function () {
beforeEach(function () {
Expand Down
11 changes: 0 additions & 11 deletions core/test/regression/models/model_users_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,17 +208,6 @@ describe('User Model', function run() {
});
});

it('can NOT findPage for a page that overflows the datatype', function (done) {
UserModel.findPage({page: 5700000000055345439587894375457849375284932759842375894372589243758947325894375894275894275894725897432859724309})
.then(function (paginationResult) {
should.exist(paginationResult.meta);

paginationResult.meta.pagination.page.should.be.a.Number();

done();
}).catch(done);
});

it('can findOne by role name', function () {
return testUtils.fixtures.createExtraUsers().then(function () {
return Promise.join(UserModel.findOne({role: 'Owner'}), UserModel.findOne({role: 'Editor'}));
Expand Down

0 comments on commit 467ccc4

Please sign in to comment.