Skip to content

Commit

Permalink
Clean code (#28356)
Browse files Browse the repository at this point in the history
  • Loading branch information
qmonmert authored Dec 31, 2024
1 parent 5cae38d commit e977c03
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Cypress.Commands.add('getEntityDeleteDialogHeading', (entityInstanceName: string

Cypress.Commands.add('setFieldImageAsBytesOfEntity', (fieldName: string, fileName: string, mimeType: string) => {
// fileName is the image which you have already put in cypress fixture folder
// should be like : 'integration-test.png', 'image/png'
// should be like: 'integration-test.png', 'image/png'
cy.fixture(fileName).as('image')
.get(`[data-cy="${fieldName}"]`).then(function(el) {
const blob = Cypress.Blob.base64StringToBlob(this.image, mimeType);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# To allow JHCC to reach JHipster application from a docker container note that we set the host as host.docker.internal
# To reach the application from a browser, you need to add '127.0.0.1 host.docker.internal' to your hosts file.
### Discovery mode
# JHCC support 3 kinds of discovery mode: Consul, Eureka and static
# JHCC supports 3 kinds of discovery mode: Consul, Eureka and static
# In order to use one, please set SPRING_PROFILES_ACTIVE to one (and only one) of this values: consul,eureka,static
### Discovery properties
# According to the discovery mode choose as Spring profile, you have to set the right properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('Axios interceptor', () => {
<%_ if (authenticationTypeJwt) { _%>
sessionStorage.setItem('<%=jhiPrefixDashed %>-authenticationToken', 'auth');
<%_ } _%>
const result = setupAxiosConfig.onRequestSuccess(() => console.log('A problem occured'));
const result = setupAxiosConfig.onRequestSuccess(() => console.log('A problem occurred'));

<%_ if (authenticationTypeJwt) { _%>
expect(result.headers.Authorization).toBe('Bearer auth');
Expand Down

0 comments on commit e977c03

Please sign in to comment.