Skip to content

Commit

Permalink
chore: address PR feedback
Browse files Browse the repository at this point in the history
Signed-off-by: zFernand0 <[email protected]>
  • Loading branch information
zFernand0 committed May 13, 2024
1 parent 31b0591 commit 5e45fd8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
*/

import { IImperativeEventJson, ImperativeEventEmitter, ImperativeSharedEvents, ImperativeUserEvents } from "../../..";
import { IImperativeEventJson, ImperativeEventEmitter, ImperativeSharedEvents } from "../../..";
import { ITestEnvironment } from "../../../../__tests__/__src__/environment/doc/response/ITestEnvironment";
import { TestLogger } from "../../../../__tests__/src/TestLogger";
import * as TestUtil from "../../../../__tests__/src/TestUtil";
Expand All @@ -19,7 +19,6 @@ import * as path from "path";

let TEST_ENVIRONMENT: ITestEnvironment;
const iee = ImperativeEventEmitter;
// const iee_u = ImperativeUserEvents;
const iee_s = ImperativeSharedEvents;
let cwd = '';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ describe("Event Emitter", () => {

it("should teardown the Event Emitter instance successfully", () => {
expect((iee as any).initialized).toBeFalsy();
iee.teardown()
iee.teardown();
expect((iee as any).initialized).toBeFalsy();

iee.initialize("zowe", {logger: jest.fn() as any});
Expand Down
4 changes: 2 additions & 2 deletions packages/imperative/src/events/src/ImperativeEventEmitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,14 +181,14 @@ export class ImperativeEventEmitter {
/**
* ZOWE HOME directory to search for system wide ImperativeEvents like `configChanged`
*/
public getSharedEventDir(): string {
private getSharedEventDir(): string {
return join(ImperativeConfig.instance.cliHome, ".events");
}

/**
* USER HOME directory to search for user specific ImperativeEvents like `vaultChanged`
*/
public getUserEventDir(): string {
private getUserEventDir(): string {
return join(homedir(), ".zowe", ".events");
}

Expand Down

0 comments on commit 5e45fd8

Please sign in to comment.