Skip to content

Commit

Permalink
fixed new typescript version's compiler error
Browse files Browse the repository at this point in the history
  • Loading branch information
Umed Khudoiberdiev committed Jun 23, 2016
1 parent f5999cd commit 9ba0eb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/metadata/EntityMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export class EntityMetadata {
* All columns of the entity, including columns that are coming from the embeddeds of this entity.
*/
get columns() {
let allColumns: ColumnMetadata[] = [].concat(this._columns);
let allColumns: ColumnMetadata[] = ([] as ColumnMetadata[]).concat(this._columns);
this.embeddeds.forEach(embedded => {
allColumns = allColumns.concat(embedded.columns);
});
Expand Down
2 changes: 1 addition & 1 deletion test/functional/lazy-relations/lazy-relations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ chai.should();
chai.use(require("sinon-chai"));
chai.use(require("chai-as-promised"));

describe.only("lazy-relations", () => {
describe("lazy-relations", () => {
const resourceDir = __dirname + "/../../../../../test/functional/lazy-relations/";
const userSchema = require(resourceDir + "schema/user.json");
const profileSchema = require(resourceDir + "schema/profile.json");
Expand Down

0 comments on commit 9ba0eb9

Please sign in to comment.