Skip to content

Commit 43a9ca8

Browse files
committed
make case-sensitive tests case insensitive
1 parent 5eda0e0 commit 43a9ca8

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

spec/tests/Feature-spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const expectFinishFeatureSuccess = function expectFinishFeatureSuccess(featureBr
3232

3333
if (!keepBranch) {
3434
return promise.catch((err) => {
35-
expect(err.message).toBe(`Cannot locate local branch '${featureBranch.shorthand()}'`);
35+
expect(err.message.toLowerCase()).toBe(`cannot locate local branch '${featureBranch.shorthand().toLowerCase()}'`);
3636
});
3737
}
3838

spec/tests/Hotfix-spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const expectFinishHotfixSuccess = function expectFinishHotfixSuccess(
5656
if (!keepBranch) {
5757
return promise
5858
.catch((err) => {
59-
expect(err.message).toBe(`Cannot locate local branch '${hotfixBranch.shorthand()}'`);
59+
expect(err.message.toLowerCase()).toBe(`cannot locate local branch '${hotfixBranch.shorthand().toLowerCase()}'`);
6060
});
6161
}
6262

spec/tests/Release-spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const expectFinishReleaseSuccess = function expectFinishReleaseSuccess(
5656
if (!keepBranch) {
5757
return promise
5858
.catch((err) => {
59-
expect(err.message).toBe(`Cannot locate local branch '${releaseBranch.shorthand()}'`);
59+
expect(err.message.toLowerCase()).toBe(`cannot locate local branch '${releaseBranch.shorthand().toLowerCase()}'`);
6060
});
6161
}
6262

0 commit comments

Comments
 (0)