Skip to content

Commit

Permalink
fix: add missing key omitted
Browse files Browse the repository at this point in the history
  • Loading branch information
trusz committed Feb 18, 2025
1 parent 30f5982 commit 73254cb
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/openscd/test/unit/Plugging.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ describe('OpenSCD-Plugin', () => {
// I could not figure how to compare the two lists
// I've tried to use chai's deep.members and deep.include.members
// and others but non of them worked.
const keys = ["name", "kind", "src", "active"]
const keys = ["name", "kind", "src", "active", "activeByDefault"]
const storedPlugins = openscd.layout.plugins.map((plugin) => {
Object.keys(plugin).forEach((key) => {
if(!keys.includes(key)) {
Expand Down Expand Up @@ -533,7 +533,6 @@ describe("Bugs ", async () => {
})



export function generateEditorPluginConfig( overwrite: Partial<Plugin> = {}): Plugin{

const randId = crypto.randomUUID().slice(0, 8)
Expand Down Expand Up @@ -870,12 +869,6 @@ function getCutomPluginNameField(openscd: MockOpenSCD): TextField {
return openscd.layout.pluginDownloadUI.pluginNameInput
}

function getPluginUIAddCustomPluginButton(openscd: MockOpenSCD): HTMLElement {
const addCustomPluginButton = <HTMLElement>(
openscd.layout.pluginUI.querySelector('mwc-button[slot="primaryAction"]')
);
return addCustomPluginButton
}

function getCustomPluginAddButton(openscd: MockOpenSCD): HTMLElement {
return openscd.layout.pluginDownloadUI.addButton
Expand Down

0 comments on commit 73254cb

Please sign in to comment.