Skip to content

Commit

Permalink
[Angular] Rename Jhipster to JHipster
Browse files Browse the repository at this point in the history
  • Loading branch information
qmonmert committed Jun 23, 2024
1 parent 83cd26e commit 04594fa
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ describe('Alert service test', () => {

it('should produce an alert object with correct id', inject([AlertService], (service: AlertService) => {
service.addAlert({ type: 'info', message: 'Hello Jhipster info' });
expect(service.addAlert({ type: 'success', message: 'Hello Jhipster success' })).toEqual(
expect(service.addAlert({ type: 'success', message: 'Hello JHipster success' })).toEqual(
expect.objectContaining({
type: 'success',
message: 'Hello Jhipster success',
message: 'Hello JHipster success',
id: 1,
} as Alert)
);
Expand All @@ -135,7 +135,7 @@ describe('Alert service test', () => {
expect(service.get()[1]).toEqual(
expect.objectContaining({
type: 'success',
message: 'Hello Jhipster success',
message: 'Hello JHipster success',
id: 1,
} as Alert)
);
Expand All @@ -144,11 +144,11 @@ describe('Alert service test', () => {
it('should close an alert correctly', inject([AlertService], (service: AlertService) => {
const alert0 = service.addAlert({ type: 'info', message: 'Hello Jhipster info' });
const alert1 = service.addAlert({ type: 'info', message: 'Hello Jhipster info 2' });
const alert2 = service.addAlert({ type: 'success', message: 'Hello Jhipster success' });
const alert2 = service.addAlert({ type: 'success', message: 'Hello JHipster success' });
expect(alert2).toEqual(
expect.objectContaining({
type: 'success',
message: 'Hello Jhipster success',
message: 'Hello JHipster success',
id: 2,
} as Alert)
);
Expand All @@ -168,7 +168,7 @@ describe('Alert service test', () => {
expect(service.get()[0]).not.toEqual(
expect.objectContaining({
type: 'success',
message: 'Hello Jhipster success',
message: 'Hello JHipster success',
id: 2,
} as Alert)
);
Expand Down

0 comments on commit 04594fa

Please sign in to comment.