public/app/plugins/*: Fix some misspell issues

This commit is contained in:
Mario Trangoni
2018-12-05 13:13:29 +01:00
parent 400db64db5
commit 37bb8840f0
3 changed files with 4 additions and 4 deletions

View File

@@ -35,7 +35,7 @@ describe('getLoglevel()', () => {
});
describe('parseLabels()', () => {
it('returns no labels on emtpy labels string', () => {
it('returns no labels on empty labels string', () => {
expect(parseLabels('')).toEqual({});
expect(parseLabels('{}')).toEqual({});
});
@@ -46,7 +46,7 @@ describe('parseLabels()', () => {
});
describe('formatLabels()', () => {
it('returns no labels on emtpy label set', () => {
it('returns no labels on empty label set', () => {
expect(formatLabels({})).toEqual('');
expect(formatLabels({}, 'foo')).toEqual('foo');
});

View File

@@ -737,7 +737,7 @@ class GraphElement {
if (min && max && ticks) {
const range = max - min;
const secPerTick = range / ticks / 1000;
// Need have 10 milisecond margin on the day range
// Need have 10 millisecond margin on the day range
// As sometimes last 24 hour dashboard evaluates to more than 86400000
const oneDay = 86400010;
const oneYear = 31536000000;

View File

@@ -54,7 +54,7 @@ export function createEditPopover(element, event, plot) {
const eventManager = plot.getOptions().events.manager;
if (eventManager.editorOpen) {
// update marker element to attach to (needed in case of legend on the right
// when there is a double render pass and the inital marker element is removed)
// when there is a double render pass and the initial marker element is removed)
markerElementToAttachTo = element;
return;
}