Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
Merge branch 'feature/METRON-1856-parser-aggregation' into METRON-2139
Browse files Browse the repository at this point in the history
  • Loading branch information
ruffle1986 committed Aug 22, 2019
2 parents 2215b04 + a815a07 commit 4794d78
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 93 deletions.
23 changes: 0 additions & 23 deletions metron-interface/metron-config/src/app/sensors/effects/index.ts

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,11 @@ describe('sensors: selectors', () => {
expect(merged[1].status).toEqual(state.sensors.statuses.items[1]);
expect(merged[2].status).toEqual(state.sensors.statuses.items[2]);

<<<<<<< HEAD
// no status belongs to it but got a status instance witn no name
=======
// no status belongs to it but got a status instance with no name
>>>>>>> feature/METRON-1856-parser-aggregation
expect(merged[3].status).toBeTruthy();
expect(merged[3].status.name).toBeFalsy();
});
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ import {MetronAlerts} from './metron-alerts';
describe('MetronAlerts', () => {

beforeEach(function() {
MetronAlerts.SUCCESS_MESSAGE_DISPALY_TIME = 500;
MetronAlerts.SUCCESS_MESSAGE_DISPLAY_TIME = 500;
});

afterEach(function() {
MetronAlerts.SUCCESS_MESSAGE_DISPALY_TIME = 5000;
MetronAlerts.SUCCESS_MESSAGE_DISPLAY_TIME = 5000;
});

it('should create an instance', () => {
Expand All @@ -41,7 +41,7 @@ describe('MetronAlerts', () => {
setTimeout(() => {
expect($(document).find('.alert .alert-success').length).toEqual(0);
done();
}, MetronAlerts.SUCCESS_MESSAGE_DISPALY_TIME);
}, MetronAlerts.SUCCESS_MESSAGE_DISPLAY_TIME);
});

it('should close success message on click of close', (done) => {
Expand All @@ -56,7 +56,7 @@ describe('MetronAlerts', () => {
setTimeout(() => {
expect($(document).find('.alert .alert-success').length).toEqual(0);
done();
}, MetronAlerts.SUCCESS_MESSAGE_DISPALY_TIME);
}, MetronAlerts.SUCCESS_MESSAGE_DISPLAY_TIME);

});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { Injectable } from "@angular/core";
@Injectable()
export class MetronAlerts {

public static SUCCESS_MESSAGE_DISPALY_TIME = 5000;
public static SUCCESS_MESSAGE_DISPLAY_TIME = 5000;

private createMessage(message: string, type: string): Node {
let element = document.createElement('div');
Expand Down Expand Up @@ -50,6 +50,6 @@ export class MetronAlerts {

document.body.removeChild(element);

}, MetronAlerts.SUCCESS_MESSAGE_DISPALY_TIME);
}, MetronAlerts.SUCCESS_MESSAGE_DISPLAY_TIME);
}
}

0 comments on commit 4794d78

Please sign in to comment.