Skip to content

Commit

Permalink
test: check if the extension can be activated
Browse files Browse the repository at this point in the history
  • Loading branch information
wdhongtw committed Jan 19, 2025
1 parent e6c475d commit 64ffa47
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/extension.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,22 @@ class FakeMemento implements vscode.Memento {

suite('ExtensionTestSuite', () => {

suite('Extension', () => {

test('should be able active the extension', async () => {
// see package.json
const extensionId = 'wdhongtw.gpg-indicator';

const extension = vscode.extensions.getExtension(extensionId);
if (!extension) {
assert.fail('Extension not found');
}

await extension.activate();
assert.strictEqual(extension.isActive, true);
});
});

suite('PassphraseStorage', () => {
const storage = new extension.PassphraseStorage(
new FakeCipher(),
Expand Down

0 comments on commit 64ffa47

Please sign in to comment.