We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 066b228 commit 9971b23Copy full SHA for 9971b23
simple-git/test/unit/push.spec.ts
@@ -103,6 +103,19 @@ describe('push', () => {
103
return aPushedBranch(local, remote, state, false);
104
}
105
106
+ it('will not match ill-formed push lines', () => {
107
+ givenTheResponse({
108
+ stdOut: [
109
+ '* refs/tags/tag-one:refs/tags/tag-one [up to date]',
110
+ '2 refs/tags/tag-one:refs/tags/tag-one [up to date]',
111
+ '= refs/tags/tag-one:refs/tags/tag-one [up to date]',
112
+ ].join('\n'),
113
+ stdErr: '',
114
+ });
115
+
116
+ expect(actual.pushed).toHaveLength(2);
117
118
119
it('parses pushing tags as well as branches', () => {
120
givenTheResponse(pushNewBranchWithTags);
121
expect(actual).toEqual(
0 commit comments