Skip to content

Commit

Permalink
[vue] Fix test case missing separator
Browse files Browse the repository at this point in the history
Fix #16393
  • Loading branch information
swarajsaaj committed Oct 2, 2021
1 parent 02c6214 commit c286043
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe('UserManagementEdit Component', () => {
localVue,
provide: {
userService: () => new UserManagementService(),
alertService: () => new AlertService()
alertService: () => new AlertService(),
}
});
userManagementEdit = wrapper.vm;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('UserManagementView Component', () => {
let userManagementView: UserManagementViewClass;

beforeEach(() => {
wrapper = shallowMount<UserManagementViewClass>(UserManagementView, { store, <% if (enableTranslation) { %>i18n, <% } %>localVue, provide: { userService: () => new UserManagementService(), alertService: () => new AlertService() } });
wrapper = shallowMount<UserManagementViewClass>(UserManagementView, { store, <% if (enableTranslation) { %>i18n, <% } %>localVue, provide: { userService: () => new UserManagementService(), alertService: () => new AlertService(), } });
userManagementView = wrapper.vm;
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ describe('UserManagement Component', () => {
},
provide: {
userService: () => new UserManagementService(),
alertService: () => new AlertService()
alertService: () => new AlertService(),
}
});
userManagement = wrapper.vm;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('Component Tests', () => {
beforeEach(() => {
<%= entityInstance %>ServiceStub = sinon.createStubInstance<<%= entityAngularName %>Service>(<%= entityAngularName %>Service);

wrapper = shallowMount<<%= entityAngularName %>Class>(<%= entityAngularName %>DetailComponent, { store, <% if (enableTranslation) { %>i18n, <% } %>localVue, router, provide: { <%= entityInstance %>Service: () => <%= entityInstance %>ServiceStub, alertService: () => new AlertService() } });
wrapper = shallowMount<<%= entityAngularName %>Class>(<%= entityAngularName %>DetailComponent, { store, <% if (enableTranslation) { %>i18n, <% } %>localVue, router, provide: { <%= entityInstance %>Service: () => <%= entityInstance %>ServiceStub, alertService: () => new AlertService(), } });
comp = wrapper.vm;
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ describe('Component Tests', () => {
router,
provide: {
<%= entityInstance %>Service: () => <%= entityInstance %>ServiceStub,
alertService: () => new AlertService()
alertService: () => new AlertService(),
<%_
const entitiesSeen = [entityAngularName];
for (relationship of relationships) { _%>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe('Component Tests', () => {
stubs: {<%_ if (!paginationNo) { _%>jhiItemCount:true, bPagination:true,<%_ } _%> bModal: bModalStub as any},
provide: {
<%= entityInstance %>Service: () => <%= entityInstance %>ServiceStub,
alertService: () => new AlertService()
alertService: () => new AlertService(),
}
});
comp = wrapper.vm;
Expand Down

0 comments on commit c286043

Please sign in to comment.