mirror of
https://github.com/knex/knex.git
synced 2025-12-27 15:08:47 +00:00
ensure ordering on migration test
This commit is contained in:
parent
5c403906a3
commit
f06ee1acd2
@ -40,7 +40,7 @@ module.exports = function(knex) {
|
||||
});
|
||||
|
||||
it('should run the migrations from oldest to newest', function() {
|
||||
return knex('knex_migrations').select('*').then(function(data) {
|
||||
return knex('knex_migrations').orderBy('id', 'asc').select('*').then(function(data) {
|
||||
expect(data[0].name).to.equal('20131019235242_migration_1.js');
|
||||
expect(data[1].name).to.equal('20131019235306_migration_2.js');
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user