Skip to content

Commit

Permalink
Merge pull request #9099 from ruddell/fix-angular-ms-entity-module-im…
Browse files Browse the repository at this point in the history
…port

fix exported entity module class name
  • Loading branch information
jdubois committed Jan 22, 2019
2 parents 1d456dd + 5a3eab1 commit 9f12966
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Expand Up @@ -62,7 +62,7 @@ const ENTITY_STATES = [
<%_ } _%>
schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class <%= angularXAppName %><%= entityAngularName %>Module {
export class <%= locals.microserviceName ? upperFirstCamelCase(locals.microserviceName) : angularXAppName %><%= entityAngularName %>Module {
<%_ if (enableTranslation) { _%>
constructor(private languageService: JhiLanguageService, private languageHelper: JhiLanguageHelper) {
this.languageHelper.language.subscribe((languageKey: string) => {
Expand Down
4 changes: 4 additions & 0 deletions test/entity.spec.js
Expand Up @@ -529,6 +529,10 @@ describe('JHipster generator for entity', () => {
assert.file(expectedFiles.clientNg2GatewayMicroserviceEntity);
assert.noFile(expectedFiles.gatling);
assert.fileContent(`${CLIENT_MAIN_SRC_DIR}app/entities/sampleMicroservice/bar/bar.service.ts`, 'samplemicroservice');
assert.fileContent(
`${CLIENT_MAIN_SRC_DIR}app/entities/sampleMicroservice/bar/bar.module.ts`,
'SampleMicroserviceBarModule'
);
assert.noFile(`${SERVER_MAIN_SRC_DIR}com/mycompany/myapp/web/rest/BarResource.java`);
});
});
Expand Down

0 comments on commit 9f12966

Please sign in to comment.