Skip to content

Commit

Permalink
apache#1008 - shutdown OmegaEdit when running yarn test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
scholarsmate committed Dec 4, 2024
1 parent ba7cfe0 commit edda9ec
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/tests/suite/dataEditor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,18 @@ suite('Data Editor Test Suite', () => {
assert.ok(dataEditWebView)
assert.strictEqual(dataEditWebView.panel.active, true)
assert.strictEqual(dataEditWebView.panel.title, 'Data Editor')

// Listen for the dispose event
let isDisposed = false
dataEditWebView.panel.onDidDispose(() => {
isDisposed = true
})

// Close the data editor panel
await dataEditWebView.panel.dispose()

// Verify that the panel has been disposed
assert.strictEqual(isDisposed, true)
})
})
})

0 comments on commit edda9ec

Please sign in to comment.