Skip to content

Commit

Permalink
Make requested changes
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew W. Harn <[email protected]>
  • Loading branch information
awharn committed Jun 13, 2024
1 parent ec3e09c commit 0b71370
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default class RegistryInstancesHandler extends ZosmfBaseHandler {
commandParameters.response.console.log(TextUtils.prettyJson(unique));
} else {
commandParameters.response.console.log("z/OSMF Service Registry");
if (!(commandParameters.arguments.filterByType == null)) {
if (commandParameters.arguments.filterByType != null) {
commandParameters.response.console.log("\nShowing ONLY \""
+ commandParameters.arguments.filterByType.toUpperCase() + "\" instance types.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ describe("PluginRequireProvider", () => {
const submodule = `${module}/submodule/import`;
expect(modulePrototype.require.call(
thisObject, submodule, testRequireIndicator
)).toBe(null || undefined);
)).toBe(undefined);

// Expect that the require was just called with the submodule
expect(mockedRequire).toHaveBeenCalledTimes(1);
Expand Down Expand Up @@ -475,7 +475,7 @@ describe("PluginRequireProvider", () => {
try {
expect(modulePrototype.require.call(
thisObject, module, testRequireIndicator
)).toBe(null || undefined);
)).toBe(undefined);

expect(mockedRequire).toHaveBeenCalledTimes(1);
expect(mockedRequire).toHaveBeenCalledWith("./", testRequireIndicator);
Expand Down Expand Up @@ -506,7 +506,7 @@ describe("PluginRequireProvider", () => {
try {
expect(modulePrototype.require.call(
thisObject, module + submoduleImport, testRequireIndicator
)).toBe(null || undefined);
)).toBe(undefined);

expect(mockedRequire).toHaveBeenCalledTimes(1);
expect(mockedRequire).toHaveBeenCalledWith(packageRoot + submoduleImport, testRequireIndicator);
Expand Down

0 comments on commit 0b71370

Please sign in to comment.