Skip to content

Commit

Permalink
Merge pull request #113 from zowe/dep-fix
Browse files Browse the repository at this point in the history
Update dependencies and prepare script
  • Loading branch information
zFernand0 authored Oct 31, 2024
2 parents c511c5b + 948ecb8 commit bb403d1
Show file tree
Hide file tree
Showing 4 changed files with 4,763 additions and 10,306 deletions.
5 changes: 1 addition & 4 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

# If not a merge commit, require commit to be signed off
if [ ! -e .git/MERGE_MSG ] && ! grep -q "^Signed-off-by: " "$1"; then
if [ ! -e $(git rev-parse --git-dir)/MERGE_MSG ] && ! grep -q "^Signed-off-by: " "$1"; then
echo >&2 "Commit message must be signed off with your user name and email."
echo >&2 "To sign off your commit, add the -s flag to the git commit command."
exit 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import * as fs from "fs";
import * as path from "path";
import { ITestEnvironment, TestEnvironment, runCliScript, isStderrEmptyForProfilesCommand } from "@zowe/cli-test-utils";
import { ITestEnvironment, TestEnvironment, runCliScript, stripProfileDeprecationMessages } from "@zowe/cli-test-utils";
import { ITestPropertiesSchema } from "../../../__src__/environment/doc/ITestPropertiesSchema";

// Test environment will be populated in the "beforeAll"
Expand Down Expand Up @@ -53,7 +53,7 @@ describe("zowe-cli-sample list profile-args command", () => {

it("should list profile args from old school profile and other sources", () => {
const response = runCliScript(__dirname + "/__scripts__/list_profile_args_old_profiles.sh", TEST_ENVIRONMENT);
expect(isStderrEmptyForProfilesCommand(response.stderr)).toBe(true);
expect(stripProfileDeprecationMessages(response.stderr)).toEqual("");
expect(response.status).toBe(0);
const output = response.stdout.toString();
expect(output).toMatch(/host:\s+new.host.com/);
Expand Down
Loading

0 comments on commit bb403d1

Please sign in to comment.