chore: add prettier (2/3): apply formatting, re-enable lint ci step (#6682)

* style: apply prettier formatting

* fix: re-enable lint ci check
This commit is contained in:
Jesse Mazzella
2023-05-18 14:54:46 -07:00
committed by GitHub
parent 172e0b23fd
commit caa7bc6fae
976 changed files with 115922 additions and 114693 deletions

View File

@@ -22,51 +22,48 @@
import NotificationIndicatorPlugin from './plugin.js';
import Vue from 'vue';
import {
createOpenMct,
resetApplicationState
} from 'utils/testing';
import { createOpenMct, resetApplicationState } from 'utils/testing';
describe('the plugin', () => {
let notificationIndicatorPlugin;
let openmct;
let indicatorElement;
let parentElement;
let mockMessages = ['error', 'test', 'notifications'];
let notificationIndicatorPlugin;
let openmct;
let indicatorElement;
let parentElement;
let mockMessages = ['error', 'test', 'notifications'];
beforeEach((done) => {
openmct = createOpenMct();
beforeEach((done) => {
openmct = createOpenMct();
notificationIndicatorPlugin = new NotificationIndicatorPlugin();
openmct.install(notificationIndicatorPlugin);
notificationIndicatorPlugin = new NotificationIndicatorPlugin();
openmct.install(notificationIndicatorPlugin);
parentElement = document.createElement('div');
parentElement = document.createElement('div');
openmct.on('start', () => {
mockMessages.forEach(message => {
openmct.notifications.error(message);
});
done();
});
openmct.start();
openmct.on('start', () => {
mockMessages.forEach((message) => {
openmct.notifications.error(message);
});
done();
});
afterEach(() => {
return resetApplicationState(openmct);
openmct.start();
});
afterEach(() => {
return resetApplicationState(openmct);
});
describe('the indicator plugin element', () => {
beforeEach(() => {
parentElement.append(indicatorElement);
return Vue.nextTick();
});
describe('the indicator plugin element', () => {
beforeEach(() => {
parentElement.append(indicatorElement);
it('notifies the user of the number of notifications', () => {
let notificationCountElement = document.querySelector('.c-indicator__count');
return Vue.nextTick();
});
it('notifies the user of the number of notifications', () => {
let notificationCountElement = document.querySelector('.c-indicator__count');
expect(notificationCountElement.innerText).toEqual(mockMessages.length.toString());
});
expect(notificationCountElement.innerText).toEqual(mockMessages.length.toString());
});
});
});