diff --git a/.cspell.json b/.cspell.json index d4c56c58b4..8fdfca68fd 100644 --- a/.cspell.json +++ b/.cspell.json @@ -140,38 +140,24 @@ "pathing", "pases", "testcases", - "Responsefrom", - "Verficiation", - "persistable", "Noneditable", - "Persistability", - "persistability", - "peristable", "listitem", "Gantt", "timelist", - "Indepdenent", "timestrip", - "Implimenting", - "proprety", "networkevents", - "stablize", "fetchpriority", - "visibity", - "Hiearchy", - "persistible", + "persistable", + "Persistable", + "persistability", + "Persistability", "testdata", "Testdata", "metdata", - "Snaphot", "timeconductor", - "Endtimes", "contenteditable", - "respone", - "Testsuite", "autoscale", "Autoscale", - "reflexted", "prepan", "sinewave", "cyanish", @@ -190,19 +176,14 @@ "Imageurl", "thumbstrip", "checkmark", - "acknowldeged", "Unshelve", "autosized", "chacskaylo", - "Telmetry", "numberfield", "OPENMCT", - "MILISECONDS", "Autoflow", "Timelist", "faultmanagement", - "localed", - "avaiable", "GEOSPATIAL", "geospatial", "plotspatial", @@ -210,7 +191,6 @@ "keystrings", "undelete", "sometag", - "nameespace", "containee", "composability", "mutables", @@ -218,26 +198,18 @@ "composee", "handleoutsideclick", "Datetime", - "funtion", "Perc", "autodismiss", - "Notifiation", - "notificiation", "filetree", "deeptailor", "keystring", - "Persistable", - "Inovke", "reindex", - "modifed", "unlisten", "symbolsfont", "ellipsize", "dismissable", "TIMESYSTEM", "Metadatas", - "modifyed", - "stategy", "stalenes", "receieves", "unsub", @@ -249,7 +221,6 @@ "granually", "timesystem", "metadatas", - "posess", "iteratees", "metadatum", "printj", @@ -257,13 +228,8 @@ "unlisteners", "amts", "reregistered", - "opemct", - "specifiy", - "loged", "hudsonfoo", "onclone", - "instatation", - "instatiated", "autoflow", "xdescribe", "mockmct", @@ -282,8 +248,6 @@ "showline", "bglayer", "autorange", - "telmetry", - "subcribe", "hoverinfo", "dotful", "Dotful", @@ -305,7 +269,6 @@ "inspectable", "Stringformatter", "sclk", - "compostion", "Objectpath", "Keystring", "duplicatable", @@ -315,11 +278,7 @@ "callthrough", "objectpath", "createable", - "applie", "noneditable", - "infinte", - "occured", - "Occured", "Classname", "classname", "selectedfaults", @@ -351,16 +310,12 @@ "TIMESTRIP", "TWENTYFOUR", "FULLSIZE", - "doesnt", "intialize", "Timestrip", "spyon", "Unlistener", "multipane", "DATESTRING", - "requred", - "telemtry", - "lastest", "akhenry", "Niklas", "Hertzen", @@ -383,7 +338,6 @@ "Yuxi", "ACITON", "localstorage", - "Compostion", "Linkto", "Painterro", "Editability", @@ -393,9 +347,6 @@ "notebookstorage", "Andpage", "pixelize", - "incremement", - "Couche", - "namepaces", "Quickstart", "indexhtml", "youradminpassword", @@ -403,7 +354,6 @@ "sourcefiles", "USERPASS", "XPUT", - "referer", "adipiscing", "eiusmod", "tempor", @@ -416,43 +366,21 @@ "submodels", "symlog", "Plottable", - "dont", - "sinwave", - "necesarry", "antisymlog", "docstrings", - "unavailab", - "eelement", - "mediump", "webglcontextlost", "gridlines", "Xaxis", "Crosshairs", "telemetrylimit", - "createble", "xscale", "yscale", - "temparature", - "configurration", - "envoke", "untracks", - "Recieve", "swatched", "NULLVALUE", - "intial", - "Retreives", - "assoicated", - "cotains", - "thet", - "Initialze", "unobserver", "unsubscriber", - "generateor", - "Intantiate", "drap", - "historial", - "evalutes", - "initialzes", "Averager", "averager", "movecolumnfromindex", @@ -463,17 +391,13 @@ "Hitarea", "Unmark", "controlbar", - "examplar", "reactified", - "valuelue", "perc", "DHMS", "timespans", "timeframes", "Timesystems", - "Syste", "Hilite", - "screan", "datetimes", "momentified", "ucontents", @@ -500,7 +424,6 @@ "bfill", "ctitle", "eicon", - "ccircle", "interactability", "AFFORDANCES", "affordance", @@ -530,7 +453,6 @@ "gridlayer", "xtick", "ytick", - "notabook", "subobjects", "Ucontents", "Userand", @@ -544,10 +466,7 @@ "haslink", "VPID", "vpid", - "paramater", - "paramaters", "updatedtest", - "broser", "KHTML", "Chromezilla", "Safarifox", @@ -555,15 +474,19 @@ "hundredtized", "dhms", "unthrottled", - "Codecov" + "Codecov", + "dont", + "mediump" ], - "dictionaries": ["npm", "software-terms"], + "dictionaries": ["npm", "softwareTerms", "node", "html", "css", "bash", "en_US"], "ignorePaths": [ "package.json", "dist/**", "package-lock.json", "node_modules", "coverage", - "*.log" + "*.log", + "html-test-results", + "test-results" ] } \ No newline at end of file diff --git a/README.md b/README.md index a66aa22d58..109aa43c49 100644 --- a/README.md +++ b/README.md @@ -95,10 +95,10 @@ To run the performance tests: `npm run test:perf` -The test suite is configured to all tests localed in `e2e/tests/` ending in `*.e2e.spec.js`. For more about the e2e test suite, please see the [README](./e2e/README.md) +The test suite is configured to all tests located in `e2e/tests/` ending in `*.e2e.spec.js`. For more about the e2e test suite, please see the [README](./e2e/README.md) ### Security Tests -Each commit is analyzed for known security vulnerabilities using [CodeQL](https://codeql.github.com/docs/codeql-language-guides/codeql-library-for-javascript/). The list of CWE coverage items is avaiable in the [CodeQL docs](https://codeql.github.com/codeql-query-help/javascript-cwe/). The CodeQL workflow is specified in the [CodeQL analysis file](./.github/workflows/codeql-analysis.yml) and the custom [CodeQL config](./.github/codeql/codeql-config.yml). +Each commit is analyzed for known security vulnerabilities using [CodeQL](https://codeql.github.com/docs/codeql-language-guides/codeql-library-for-javascript/). The list of CWE coverage items is available in the [CodeQL docs](https://codeql.github.com/codeql-query-help/javascript-cwe/). The CodeQL workflow is specified in the [CodeQL analysis file](./.github/workflows/codeql-analysis.yml) and the custom [CodeQL config](./.github/codeql/codeql-config.yml). ### Test Reporting and Code Coverage diff --git a/e2e/tests/functional/couchdb.e2e.spec.js b/e2e/tests/functional/couchdb.e2e.spec.js index 2ff9e97842..e24a34fe49 100644 --- a/e2e/tests/functional/couchdb.e2e.spec.js +++ b/e2e/tests/functional/couchdb.e2e.spec.js @@ -80,7 +80,7 @@ test.describe('CouchDB Status Indicator with mocked responses @couchdb', () => { test.describe('CouchDB initialization with mocked responses @couchdb', () => { test.use({ failOnConsoleError: false }); test("'My Items' folder is created if it doesn't exist", async ({ page }) => { - const mockedMissingObjectResponsefromCouchDB = { + const mockedMissingObjectResponseFromCouchDB = { status: 404, contentType: 'application/json', body: JSON.stringify({}) @@ -92,7 +92,7 @@ test.describe('CouchDB initialization with mocked responses @couchdb', () => { await page.route( '**/mine', (route) => { - route.fulfill(mockedMissingObjectResponsefromCouchDB); + route.fulfill(mockedMissingObjectResponseFromCouchDB); }, { times: 1 } ); diff --git a/e2e/tests/functional/example/eventGenerator.e2e.spec.js b/e2e/tests/functional/example/eventGenerator.e2e.spec.js index b8560787d0..f36d88dfe6 100644 --- a/e2e/tests/functional/example/eventGenerator.e2e.spec.js +++ b/e2e/tests/functional/example/eventGenerator.e2e.spec.js @@ -46,7 +46,7 @@ test.describe('Example Event Generator CRUD Operations', () => { }); }); -test.describe('Example Event Generator Telemetry Event Verficiation', () => { +test.describe('Example Event Generator Telemetry Event Verification', () => { test.fixme('telemetry is coming in for test event', async ({ page }) => { // Go to object created in step one // Verify the telemetry table is filled with > 1 row diff --git a/e2e/tests/functional/moveAndLinkObjects.e2e.spec.js b/e2e/tests/functional/moveAndLinkObjects.e2e.spec.js index a1bb6610dd..4e8d27e281 100644 --- a/e2e/tests/functional/moveAndLinkObjects.e2e.spec.js +++ b/e2e/tests/functional/moveAndLinkObjects.e2e.spec.js @@ -292,7 +292,7 @@ test.describe('Move & link item tests', () => { }); test.fixme( - 'Cannot move a previously created domain object to non-peristable object in Move Modal', + 'Cannot move a previously created domain object to non-persistable object in Move Modal', async ({ page }) => { //Create a domain object //Save Domain object diff --git a/e2e/tests/functional/planning/timestrip.e2e.spec.js b/e2e/tests/functional/planning/timestrip.e2e.spec.js index 5b882df74d..4eea93535e 100644 --- a/e2e/tests/functional/planning/timestrip.e2e.spec.js +++ b/e2e/tests/functional/planning/timestrip.e2e.spec.js @@ -73,7 +73,7 @@ const testPlan = { }; test.describe('Time Strip', () => { - test('Create two Time Strips, add a single Plan to both, and verify they can have separate Indepdenent Time Contexts @unstable', async ({ + test('Create two Time Strips, add a single Plan to both, and verify they can have separate Independent Time Contexts @unstable', async ({ page }) => { test.info().annotations.push({ diff --git a/e2e/tests/functional/plugins/conditionSet/conditionSet.e2e.spec.js b/e2e/tests/functional/plugins/conditionSet/conditionSet.e2e.spec.js index 133f5cad1d..1bfe2e9ac4 100644 --- a/e2e/tests/functional/plugins/conditionSet/conditionSet.e2e.spec.js +++ b/e2e/tests/functional/plugins/conditionSet/conditionSet.e2e.spec.js @@ -22,7 +22,7 @@ /* This test suite is dedicated to tests which verify the basic operations surrounding conditionSets. Note: this -suite is sharing state between tests which is considered an anti-pattern. Implimenting in this way to +suite is sharing state between tests which is considered an anti-pattern. Implementing in this way to demonstrate some playwright for test developers. This pattern should not be re-used in other CRUD suites. */ @@ -127,7 +127,7 @@ test.describe.serial('Condition Set CRUD Operations on @localStorage', () => { // Verify Inspector Details has updated Name property expect.soft(page.locator('text=Renamed Condition Set').nth(2)).toBeTruthy(); - // Verify Tree reflects updated Name proprety + // Verify Tree reflects updated Name property // Expand Tree await page.locator(`text=Open MCT ${myItemsFolderName} >> span >> nth=3`).click(); // Verify Condition Set Object is renamed in Tree @@ -150,7 +150,7 @@ test.describe.serial('Condition Set CRUD Operations on @localStorage', () => { // Verify Inspector Details has updated Name property expect.soft(page.locator('text=Renamed Condition Set').nth(2)).toBeTruthy(); - // Verify Tree reflects updated Name proprety + // Verify Tree reflects updated Name property // Expand Tree await page.locator(`text=Open MCT ${myItemsFolderName} >> span >> nth=3`).click(); // Verify Condition Set Object is renamed in Tree diff --git a/e2e/tests/functional/plugins/imagery/exampleImagery.e2e.spec.js b/e2e/tests/functional/plugins/imagery/exampleImagery.e2e.spec.js index 09e0c083d4..a2e34c8a7c 100644 --- a/e2e/tests/functional/plugins/imagery/exampleImagery.e2e.spec.js +++ b/e2e/tests/functional/plugins/imagery/exampleImagery.e2e.spec.js @@ -214,7 +214,7 @@ test.describe('Example Imagery Object', () => { await page.mouse.up(); await Promise.all(tagHotkey.map((x) => page.keyboard.up(x))); - //Wait for canvas to stablize. + //Wait for canvas to stabilize. await canvas.hover({ trial: true }); // add some tags @@ -394,7 +394,7 @@ test.describe('Example Imagery in Display Layout', () => { /** * Toggle layer visibility checkbox by clicking on checkbox label * - should toggle checkbox and layer visibility for that image view - * - should NOT toggle checkbox and layer visibity for the first image view in display + * - should NOT toggle checkbox and layer visibility for the first image view in display */ test('Toggle layer visibility by clicking on label', async ({ page }) => { test.info().annotations.push({ diff --git a/e2e/tests/functional/plugins/importAndExportAsJSON/exportAsJson.e2e.spec.js b/e2e/tests/functional/plugins/importAndExportAsJSON/exportAsJson.e2e.spec.js index aeab0424af..0c9d478fa4 100644 --- a/e2e/tests/functional/plugins/importAndExportAsJSON/exportAsJson.e2e.spec.js +++ b/e2e/tests/functional/plugins/importAndExportAsJSON/exportAsJson.e2e.spec.js @@ -48,12 +48,12 @@ test.describe('ExportAsJSON', () => { test.fixme('Verify that a nested Object can be exported as JSON', async ({ page }) => { // Create 2 objects with hierarchy // Export as JSON - // Verify Hiearchy + // Verify Hierarchy }); test.fixme( 'Verify that the ExportAsJSON dropdown does not appear for the item X', async ({ page }) => { - // Other than non-persistible objects + // Other than non-persistable objects } ); }); diff --git a/e2e/tests/functional/plugins/importAndExportAsJSON/importAsJson.e2e.spec.js b/e2e/tests/functional/plugins/importAndExportAsJSON/importAsJson.e2e.spec.js index 8ecdc22c90..94c82af68f 100644 --- a/e2e/tests/functional/plugins/importAndExportAsJSON/importAsJson.e2e.spec.js +++ b/e2e/tests/functional/plugins/importAndExportAsJSON/importAsJson.e2e.spec.js @@ -48,7 +48,7 @@ test.describe('ExportAsJSON', () => { test.fixme( 'Verify that the ImportAsJSON dropdown does not appear for the item X', async ({ page }) => { - // Other than non-persistible objects + // Other than non-persistable objects } ); }); diff --git a/e2e/tests/functional/plugins/notebook/notebook.e2e.spec.js b/e2e/tests/functional/plugins/notebook/notebook.e2e.spec.js index 79aa68eaeb..79fb500474 100644 --- a/e2e/tests/functional/plugins/notebook/notebook.e2e.spec.js +++ b/e2e/tests/functional/plugins/notebook/notebook.e2e.spec.js @@ -39,7 +39,7 @@ test.describe('Notebook CRUD Operations', () => { test.fixme('Can update a Notebook Object', async ({ page }) => {}); test.fixme('Can view a perviously created Notebook Object', async ({ page }) => {}); test.fixme('Can Delete a Notebook Object', async ({ page }) => { - // Other than non-persistible objects + // Other than non-persistable objects }); }); diff --git a/e2e/tests/functional/plugins/notebook/notebookSnapshots.e2e.spec.js b/e2e/tests/functional/plugins/notebook/notebookSnapshots.e2e.spec.js index a8294b2e7a..00c3f01f8c 100644 --- a/e2e/tests/functional/plugins/notebook/notebookSnapshots.e2e.spec.js +++ b/e2e/tests/functional/plugins/notebook/notebookSnapshots.e2e.spec.js @@ -35,7 +35,7 @@ test.describe('Snapshot Menu tests', () => { // There should be no default notebook // Clear default notebook if exists using `localStorage.setItem('notebook-storage', null);` // refresh page - // Click on 'Notebook Snaphot Menu' + // Click on 'Notebook Snapshot Menu' // 'save to Notebook Snapshots' should be only option there } ); @@ -62,7 +62,7 @@ test.describe('Snapshot Menu tests', () => { }); test.fixme('Snapshots adjust time conductor', async ({ page }) => { // Create Telemetry object - // Set Telemetry object's timeconductor to Fixed time with Start and Endtimes are recorded + // Set Telemetry object's timeconductor to Fixed time with Start and End times are recorded // Embed Telemetry object into notebook // Set Time Conductor to Local clock // Click into embedded telemetry object and verify object appears with same fixed time from record diff --git a/e2e/tests/functional/plugins/operatorStatus/operatorStatus.e2e.spec.js b/e2e/tests/functional/plugins/operatorStatus/operatorStatus.e2e.spec.js index 1fa5437bd8..8c16a2fb8e 100644 --- a/e2e/tests/functional/plugins/operatorStatus/operatorStatus.e2e.spec.js +++ b/e2e/tests/functional/plugins/operatorStatus/operatorStatus.e2e.spec.js @@ -157,6 +157,6 @@ test.describe('Operator Status', () => { }); test.fixme('iterate through all possible response values', async ({ page }) => { - // test all possible respone values for the poll + // test all possible response values for the poll }); }); diff --git a/e2e/tests/functional/plugins/plot/autoscale.e2e.spec.js b/e2e/tests/functional/plugins/plot/autoscale.e2e.spec.js index 1427129e38..c750e6a908 100644 --- a/e2e/tests/functional/plugins/plot/autoscale.e2e.spec.js +++ b/e2e/tests/functional/plugins/plot/autoscale.e2e.spec.js @@ -76,7 +76,7 @@ test.describe('Autoscale', () => { await page.locator('.c-message-banner__close-button').click(); await page.waitForSelector('.c-message-banner__message', { state: 'detached' }); - // Make sure that after turning off autoscale, the user entered range values are reflexted in the ticks. + // Make sure that after turning off autoscale, the user entered range values are reflected in the ticks. await testYTicks(page, [ '-2.00', '-1.50', @@ -118,7 +118,7 @@ test.describe('Autoscale', () => { // Ensure the drag worked. await testYTicks(page, ['-0.50', '0.00', '0.50', '1.00', '1.50', '2.00', '2.50', '3.00']); - //Wait for canvas to stablize. + //Wait for canvas to stabilize. await canvas.hover({ trial: true }); expect diff --git a/e2e/tests/functional/plugins/plot/tagging.e2e.spec.js b/e2e/tests/functional/plugins/plot/tagging.e2e.spec.js index f6503b41e8..c1c00b169b 100644 --- a/e2e/tests/functional/plugins/plot/tagging.e2e.spec.js +++ b/e2e/tests/functional/plugins/plot/tagging.e2e.spec.js @@ -63,7 +63,7 @@ test.describe('Plot Tagging', () => { await page.keyboard.up('Alt'); await page.keyboard.up('Shift'); - //Wait for canvas to stablize. + //Wait for canvas to stabilize. await canvas.hover({ trial: true }); // add some tags @@ -91,7 +91,7 @@ test.describe('Plot Tagging', () => { const canvas = page.locator('canvas').nth(1); - //Wait for canvas to stablize. + //Wait for canvas to stabilize. await canvas.hover({ trial: true }); // click on the tagged plot point diff --git a/e2e/tests/performance/tagging.perf.spec.js b/e2e/tests/performance/tagging.perf.spec.js index 2e3b7c32ba..8f20b078fc 100644 --- a/e2e/tests/performance/tagging.perf.spec.js +++ b/e2e/tests/performance/tagging.perf.spec.js @@ -63,7 +63,7 @@ test.describe.fixme('Plot Tagging Performance', () => { await page.keyboard.up('Alt'); await page.keyboard.up('Shift'); - //Wait for canvas to stablize. + //Wait for canvas to stabilize. await canvas.hover({ trial: true }); // add some tags @@ -91,7 +91,7 @@ test.describe.fixme('Plot Tagging Performance', () => { const canvas = page.locator('canvas').nth(1); - //Wait for canvas to stablize. + //Wait for canvas to stabilize. await canvas.hover({ trial: true }); // click on the tagged plot point diff --git a/e2e/tests/visual/faultManagement.visual.spec.js b/e2e/tests/visual/faultManagement.visual.spec.js index ccb94e120e..518893c547 100644 --- a/e2e/tests/visual/faultManagement.visual.spec.js +++ b/e2e/tests/visual/faultManagement.visual.spec.js @@ -46,7 +46,7 @@ test.describe('The Fault Management Plugin Visual Test', () => { await percySnapshot( page, - `Acknowledged faults, have a checkmark on the fault icon and appear in the acknowldeged view (theme: '${theme}')` + `Acknowledged faults, have a checkmark on the fault icon and appear in the acknowledged view (theme: '${theme}')` ); }); diff --git a/example/eventGenerator/plugin.js b/example/eventGenerator/plugin.js index 23552fd63f..73f02a1d64 100644 --- a/example/eventGenerator/plugin.js +++ b/example/eventGenerator/plugin.js @@ -19,7 +19,7 @@ * this source code distribution or the Licensing information page available * at runtime from the About dialog for additional information. *****************************************************************************/ -import EventTelmetryProvider from './EventTelemetryProvider'; +import EventTelemetryProvider from './EventTelemetryProvider'; import EventMetadataProvider from './EventMetadataProvider'; export default function EventGeneratorPlugin(options) { @@ -36,7 +36,7 @@ export default function EventGeneratorPlugin(options) { }; } }); - openmct.telemetry.addProvider(new EventTelmetryProvider()); + openmct.telemetry.addProvider(new EventTelemetryProvider()); openmct.telemetry.addProvider(new EventMetadataProvider()); }; } diff --git a/example/imagery/plugin.js b/example/imagery/plugin.js index c090c11ea8..ee2fe33f8c 100644 --- a/example/imagery/plugin.js +++ b/example/imagery/plugin.js @@ -40,8 +40,8 @@ const DEFAULT_IMAGE_SAMPLES = [ 'https://www.hq.nasa.gov/alsj/a16/AS16-117-18747.jpg', 'https://www.hq.nasa.gov/alsj/a16/AS16-117-18748.jpg' ]; -const DEFAULT_IMAGE_LOAD_DELAY_IN_MILISECONDS = 20000; -const MIN_IMAGE_LOAD_DELAY_IN_MILISECONDS = 5000; +const DEFAULT_IMAGE_LOAD_DELAY_IN_MILLISECONDS = 20000; +const MIN_IMAGE_LOAD_DELAY_IN_MILLISECONDS = 5000; let openmctInstance; @@ -58,7 +58,7 @@ export default function () { initialize: (object) => { object.configuration = { imageLocation: '', - imageLoadDelayInMilliSeconds: DEFAULT_IMAGE_LOAD_DELAY_IN_MILISECONDS, + imageLoadDelayInMilliSeconds: DEFAULT_IMAGE_LOAD_DELAY_IN_MILLISECONDS, imageSamples: [], layers: [] }; @@ -188,20 +188,20 @@ function getImageLoadDelay(domainObject) { openmctInstance.objects.mutate( domainObject, 'configuration.imageLoadDelayInMilliSeconds', - DEFAULT_IMAGE_LOAD_DELAY_IN_MILISECONDS + DEFAULT_IMAGE_LOAD_DELAY_IN_MILLISECONDS ); - return DEFAULT_IMAGE_LOAD_DELAY_IN_MILISECONDS; + return DEFAULT_IMAGE_LOAD_DELAY_IN_MILLISECONDS; } - if (imageLoadDelay < MIN_IMAGE_LOAD_DELAY_IN_MILISECONDS) { + if (imageLoadDelay < MIN_IMAGE_LOAD_DELAY_IN_MILLISECONDS) { openmctInstance.objects.mutate( domainObject, 'configuration.imageLoadDelayInMilliSeconds', - MIN_IMAGE_LOAD_DELAY_IN_MILISECONDS + MIN_IMAGE_LOAD_DELAY_IN_MILLISECONDS ); - return MIN_IMAGE_LOAD_DELAY_IN_MILISECONDS; + return MIN_IMAGE_LOAD_DELAY_IN_MILLISECONDS; } return imageLoadDelay; diff --git a/package.json b/package.json index bd11e48704..f8e767cc3a 100644 --- a/package.json +++ b/package.json @@ -82,7 +82,7 @@ "start": "npx webpack serve --config ./.webpack/webpack.dev.js", "start:coverage": "npx webpack serve --config ./.webpack/webpack.coverage.js", "lint": "eslint example src e2e --ext .js,.vue openmct.js --max-warnings=0", - "lint:spelling": "cspell \"**/*.*\"", + "lint:spelling": "cspell \"**/*.{js,md,vue}\" --show-context --gitignore", "lint:fix": "eslint example src e2e --ext .js,.vue openmct.js --fix", "build:prod": "webpack --config ./.webpack/webpack.prod.js", "build:dev": "webpack --config ./.webpack/webpack.dev.js", diff --git a/src/api/annotation/AnnotationAPISpec.js b/src/api/annotation/AnnotationAPISpec.js index 318220ba2e..2499c9f0cf 100644 --- a/src/api/annotation/AnnotationAPISpec.js +++ b/src/api/annotation/AnnotationAPISpec.js @@ -168,7 +168,7 @@ describe('The Annotation API', () => { targetDomainObjects: [mockDomainObject], targets: { fooTarget: {} } }; - openmct.annotation.setNamespaceToSaveAnnotations('nameespaceThatDoesNotExist'); + openmct.annotation.setNamespaceToSaveAnnotations('namespaceThatDoesNotExist'); await openmct.annotation.create(annotationCreationArguments); } catch (error) { expect(error).toBeDefined(); diff --git a/src/api/forms/FormsAPI.js b/src/api/forms/FormsAPI.js index e91621b966..86338996a5 100644 --- a/src/api/forms/FormsAPI.js +++ b/src/api/forms/FormsAPI.js @@ -39,7 +39,7 @@ export default class FormsAPI { * This function accepts element, model and onChange function * element - html element (place holder) to render a row view * model - row data for rendering name, value etc for given row type - * onChange - an onChange event callback funtion to keep track of any change in value + * onChange - an onChange event callback function to keep track of any change in value * @property {function} destroy a callback function when a vue component gets destroyed */ diff --git a/src/api/notifications/NotificationAPISpec.js b/src/api/notifications/NotificationAPISpec.js index b3e93bebbd..233cc14922 100644 --- a/src/api/notifications/NotificationAPISpec.js +++ b/src/api/notifications/NotificationAPISpec.js @@ -22,7 +22,7 @@ import NotificationAPI from './NotificationAPI'; -describe('The Notifiation API', () => { +describe('The Notification API', () => { let notificationAPIInstance; let defaultTimeout = 4000; @@ -108,7 +108,7 @@ describe('The Notifiation API', () => { }); }); - describe('the error method notificiation', () => { + describe('the error method notification', () => { let message = 'Minimized error message'; afterAll(() => { diff --git a/src/api/objects/ObjectAPI.js b/src/api/objects/ObjectAPI.js index ebc7767371..39a3e5039d 100644 --- a/src/api/objects/ObjectAPI.js +++ b/src/api/objects/ObjectAPI.js @@ -520,7 +520,7 @@ export default class ObjectAPI { } /** - * Inovke interceptors if applicable for a given domain object. + * Invoke interceptors if applicable for a given domain object. * @private */ applyGetInterceptors(identifier, domainObject) { diff --git a/src/api/objects/ObjectAPISpec.js b/src/api/objects/ObjectAPISpec.js index b7c56121ae..0302bfa647 100644 --- a/src/api/objects/ObjectAPISpec.js +++ b/src/api/objects/ObjectAPISpec.js @@ -125,7 +125,7 @@ describe('The Object API', () => { await objectAPI.save(mockDomainObject); expect(mockDomainObject.createdBy).toBe(USERNAME); }); - it("Sets the current user for 'modifedBy' on existing objects", async () => { + it("Sets the current user for 'modifiedBy' on existing objects", async () => { mockDomainObject.persisted = Date.now() - FIFTEEN_MINUTES; mockDomainObject.modified = Date.now(); diff --git a/src/api/telemetry/TelemetryAPI.js b/src/api/telemetry/TelemetryAPI.js index 85cf416cd1..050cdcce04 100644 --- a/src/api/telemetry/TelemetryAPI.js +++ b/src/api/telemetry/TelemetryAPI.js @@ -230,7 +230,7 @@ export default class TelemetryAPI { /** * Register a request interceptor that transforms a request via module:openmct.TelemetryAPI.request - * The request will be modifyed when it is received and will be returned in it's modified state + * The request will be modified when it is received and will be returned in it's modified state * The request will be transformed only if the interceptor is applicable to that domain object as defined by the RequestInterceptorDef * * @param {module:openmct.RequestInterceptorDef} requestInterceptorDef the request interceptor definition to add @@ -269,7 +269,7 @@ export default class TelemetryAPI { } /** - * Get or set greedy LAD. For stategy "latest" telemetry in + * Get or set greedy LAD. For strategy "latest" telemetry in * realtime mode the start bound will be ignored if true and * there is no new data to replace the existing data. * defaults to true diff --git a/src/api/telemetry/TelemetryMetadataManager.js b/src/api/telemetry/TelemetryMetadataManager.js index db08e8da3e..2048059797 100644 --- a/src/api/telemetry/TelemetryMetadataManager.js +++ b/src/api/telemetry/TelemetryMetadataManager.js @@ -92,7 +92,7 @@ define(['lodash'], function (_) { }; /** - * Get an array of valueMetadatas that posess all hints requested. + * Get an array of valueMetadatas that possess all hints requested. * Array is sorted based on hint priority. * */ diff --git a/src/api/types/Type.js b/src/api/types/Type.js index f56a18abfc..2082b05319 100644 --- a/src/api/types/Type.js +++ b/src/api/types/Type.js @@ -24,7 +24,7 @@ * A Type describes a kind of domain object that may appear or be * created within Open MCT. * - * @param {module:opemct.TypeRegistry~TypeDefinition} definition + * @param {module:openmct.TypeRegistry~TypeDefinition} definition * @class Type * @memberof module:openmct */ diff --git a/src/api/user/UserAPI.js b/src/api/user/UserAPI.js index 5e588825c3..53bb06bb62 100644 --- a/src/api/user/UserAPI.js +++ b/src/api/user/UserAPI.js @@ -43,7 +43,7 @@ class UserAPI extends EventEmitter { /** * Set the user provider for the user API. This allows you - * to specifiy ONE user provider to be used with Open MCT. + * to specify ONE user provider to be used with Open MCT. * @method setProvider * @memberof module:openmct.UserAPI# * @param {module:openmct.UserAPI~UserProvider} provider the new diff --git a/src/api/user/UserAPISpec.js b/src/api/user/UserAPISpec.js index 8a849c9fa4..183bc263b8 100644 --- a/src/api/user/UserAPISpec.js +++ b/src/api/user/UserAPISpec.js @@ -74,7 +74,7 @@ describe('The User API', () => { provider.autoLogin(USERNAME); }); - it('to check if a user (not specific) is loged in', (done) => { + it('to check if a user (not specific) is logged in', (done) => { expect(openmct.user.isLoggedIn()).toBeFalse(); openmct.user.on('providerAdded', () => { diff --git a/src/exporters/ImageExporterSpec.js b/src/exporters/ImageExporterSpec.js index f55e6eeafb..0ee058865c 100644 --- a/src/exporters/ImageExporterSpec.js +++ b/src/exporters/ImageExporterSpec.js @@ -35,8 +35,8 @@ describe('The Image Exporter', () => { return resetApplicationState(openmct); }); - describe('basic instatation', () => { - it('can be instatiated', () => { + describe('basic instantiation', () => { + it('can be instantiated', () => { imageExporter = new ImageExporter(openmct); expect(imageExporter).not.toEqual(null); diff --git a/src/plugins/LADTable/components/LADRow.vue b/src/plugins/LADTable/components/LADRow.vue index 26b925cb0d..808f96883d 100644 --- a/src/plugins/LADTable/components/LADRow.vue +++ b/src/plugins/LADTable/components/LADRow.vue @@ -65,7 +65,7 @@ export default { }, hasUnits: { type: Boolean, - requred: true + required: true }, isStale: { type: Boolean, diff --git a/src/plugins/LADTable/pluginSpec.js b/src/plugins/LADTable/pluginSpec.js index fa71e9289b..3fdcadc722 100644 --- a/src/plugins/LADTable/pluginSpec.js +++ b/src/plugins/LADTable/pluginSpec.js @@ -127,7 +127,7 @@ describe('The LAD Table', () => { }).not.toThrow(); }); - it('should reject non-telemtry producing objects', () => { + it('should reject non-telemetry producing objects', () => { expect(() => { ladTableCompositionCollection.add(mockObj.ladTable); }).toThrow(); @@ -254,10 +254,10 @@ describe('The LAD Table', () => { it('should show aggregate telemetry type with blank data', async () => { await Vue.nextTick(); - const lastestData = parent + const latestData = parent .querySelectorAll(TABLE_BODY_ROWS)[1] .querySelectorAll('td')[2].innerText; - expect(lastestData).toBe('---'); + expect(latestData).toBe('---'); const dataType = parent .querySelectorAll(TABLE_BODY_ROWS)[1] .querySelector('.js-type-data').innerText; diff --git a/src/plugins/charts/bar/BarGraphView.vue b/src/plugins/charts/bar/BarGraphView.vue index 52640548fb..018ea59568 100644 --- a/src/plugins/charts/bar/BarGraphView.vue +++ b/src/plugins/charts/bar/BarGraphView.vue @@ -158,7 +158,7 @@ export default { this.composition.remove(telemetryObject); }, addTelemetryObject(telemetryObject) { - // grab information we need from the added telmetry object + // grab information we need from the added telemetry object const key = this.openmct.objects.makeKeyString(telemetryObject.identifier); this.telemetryObjects[key] = telemetryObject; const metadata = this.openmct.telemetry.getMetadata(telemetryObject); @@ -188,7 +188,7 @@ export default { ); } - // ask for the current telemetry data, then subcribe for changes + // ask for the current telemetry data, then subscribe for changes this.requestDataFor(telemetryObject); this.subscribeToObject(telemetryObject); }, diff --git a/src/plugins/charts/scatter/ScatterPlotView.vue b/src/plugins/charts/scatter/ScatterPlotView.vue index da3ebd2292..e70249a48a 100644 --- a/src/plugins/charts/scatter/ScatterPlotView.vue +++ b/src/plugins/charts/scatter/ScatterPlotView.vue @@ -122,7 +122,7 @@ export default { this.composition.remove(telemetryObject); }, addTelemetryObject(telemetryObject) { - // grab information we need from the added telmetry object + // grab information we need from the added telemetry object const key = this.openmct.objects.makeKeyString(telemetryObject.identifier); this.telemetryObjects[key] = telemetryObject; const metadata = this.openmct.telemetry.getMetadata(telemetryObject); diff --git a/src/plugins/displayLayout/pluginSpec.js b/src/plugins/displayLayout/pluginSpec.js index 30bd8ff2b3..5c8c6853ee 100644 --- a/src/plugins/displayLayout/pluginSpec.js +++ b/src/plugins/displayLayout/pluginSpec.js @@ -141,7 +141,7 @@ describe('the plugin', function () { }; displayLayoutItem = { composition: [ - // no item in compostion, but item in configuration items + // no item in composition, but item in configuration items ], configuration: { items: [item], @@ -165,7 +165,7 @@ describe('the plugin', function () { Vue.nextTick(done); }); - it('will sync compostion and layout items', () => { + it('will sync composition and layout items', () => { expect(displayLayoutItem.configuration.items.length).toBe(0); }); }); diff --git a/src/plugins/exportAsJSONAction/ExportAsJSONActionSpec.js b/src/plugins/exportAsJSONAction/ExportAsJSONActionSpec.js index 3e4f17aa36..8e94cc83cd 100644 --- a/src/plugins/exportAsJSONAction/ExportAsJSONActionSpec.js +++ b/src/plugins/exportAsJSONAction/ExportAsJSONActionSpec.js @@ -73,7 +73,7 @@ describe('Export as JSON plugin', () => { expect(exportAsJSONAction.appliesTo([domainObject])).toEqual(true); }); - it('ExportAsJSONAction does not applie to non-persistable objects', () => { + it('ExportAsJSONAction does not apply to non-persistable objects', () => { domainObject = { identifier: { key: 'export-testing', @@ -212,7 +212,7 @@ describe('Export as JSON plugin', () => { const parent = { composition: [ { - key: 'infinteChild', + key: 'infiniteChild', namespace: '' } ], @@ -235,7 +235,7 @@ describe('Export as JSON plugin', () => { } ], identifier: { - key: 'infinteChild', + key: 'infiniteChild', namespace: '' }, name: 'child', @@ -265,7 +265,7 @@ describe('Export as JSON plugin', () => { Object.prototype.hasOwnProperty.call(completedTree.openmct, 'infiniteParent') ).toBeTruthy(); expect( - Object.prototype.hasOwnProperty.call(completedTree.openmct, 'infinteChild') + Object.prototype.hasOwnProperty.call(completedTree.openmct, 'infiniteChild') ).toBeTruthy(); done(); diff --git a/src/plugins/faultManagement/FaultManagementInspector.vue b/src/plugins/faultManagement/FaultManagementInspector.vue index ba41e665b6..8ef6e7cae9 100644 --- a/src/plugins/faultManagement/FaultManagementInspector.vue +++ b/src/plugins/faultManagement/FaultManagementInspector.vue @@ -25,7 +25,7 @@