Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Rename migration entity
Browse files Browse the repository at this point in the history
  • Loading branch information
lsilvs committed May 28, 2019
1 parent ff109d5 commit 4d7c893
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion framework/src/controller/migrations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

'use strict';

const MigrationEntity = require('./migration');
const MigrationEntity = require('./migration_entity');

module.exports = {
MigrationEntity,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const sqlFiles = {
* @property {string} [namespace_like]
*/

class Migration extends BaseEntity {
class MigrationEntity extends BaseEntity {
/**
* Constructor
* @param {BaseAdapter} adapter - Adapter to retrieve the data from
Expand Down Expand Up @@ -308,4 +308,4 @@ class Migration extends BaseEntity {
}
}

module.exports = Migration;
module.exports = MigrationEntity;
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ describe('Migration', () => {

it('should be a constructable function', async () => {
expect(MigrationEntity.prototype.constructor).not.to.be.null;
expect(MigrationEntity.prototype.constructor.name).to.be.eql('Migration');
expect(MigrationEntity.prototype.constructor.name).to.be.eql(
'MigrationEntity'
);
});

it('should extend BaseEntity', async () => {
Expand Down

0 comments on commit 4d7c893

Please sign in to comment.