Skip to content

Commit

Permalink
fix(app): test length
Browse files Browse the repository at this point in the history
fix #65
  • Loading branch information
vogloblinsky committed Jan 20, 2017
1 parent e1e39c6 commit 462cf95
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/app/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,12 @@ export class Application {
};

_.forEach(this.configuration.mainData.components, (component) => {
if (!component.propertiesClass ||
!component.methodsClass ||
!component.inputsClass ||
!component.outputsClass) {
return;
}
let cl = {
filePath: component.file,
type: component.type,
Expand Down Expand Up @@ -398,6 +404,10 @@ export class Application {
files.push(cl);
})
_.forEach(this.configuration.mainData.classes, (classe) => {
if (!classe.properties ||
!classe.methods) {
return;
}
let cl = {
filePath: classe.file,
type: 'classe',
Expand Down Expand Up @@ -425,6 +435,10 @@ export class Application {
files.push(cl);
});
_.forEach(this.configuration.mainData.injectables, (injectable) => {
if (!injectable.properties ||
!injectable.methods) {
return;
}
let cl = {
filePath: injectable.file,
type: injectable.type,
Expand Down Expand Up @@ -452,6 +466,10 @@ export class Application {
files.push(cl);
});
_.forEach(this.configuration.mainData.interfaces, (inter) => {
if (!inter.properties ||
!inter.methods) {
return;
}
let cl = {
filePath: inter.file,
type: inter.type,
Expand Down

0 comments on commit 462cf95

Please sign in to comment.