@apexdevtools/git-ops 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -1
- package/README.md +4 -0
- package/lib/src/Git/Git.js +1 -1
- package/lib/test/Git/Git.spec.js +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
package/lib/src/Git/Git.js
CHANGED
package/lib/test/Git/Git.spec.js
CHANGED
|
@@ -28,10 +28,10 @@ describe('Git', () => {
|
|
|
28
28
|
yield repoManager.tearDown();
|
|
29
29
|
}));
|
|
30
30
|
describe('version check', () => {
|
|
31
|
-
it('does not fail when Git version is equal to 2.
|
|
31
|
+
it('does not fail when Git version is equal to 2.30.0', () => {
|
|
32
32
|
//Given/When
|
|
33
33
|
const mock = {
|
|
34
|
-
version: jest.fn().mockReturnValue({ major: 2, minor:
|
|
34
|
+
version: jest.fn().mockReturnValue({ major: 2, minor: 30, patch: 0 }),
|
|
35
35
|
};
|
|
36
36
|
expect(Git_1.Git.versionCheck(mock)).resolves;
|
|
37
37
|
});
|
|
@@ -41,7 +41,7 @@ describe('Git', () => {
|
|
|
41
41
|
version: jest.fn().mockReturnValue({ major: 1 }),
|
|
42
42
|
};
|
|
43
43
|
//Then
|
|
44
|
-
yield expect(Git_1.Git.versionCheck(mock)).rejects.toThrow(Error('Unsupported version of git. Min version must be 2.
|
|
44
|
+
yield expect(Git_1.Git.versionCheck(mock)).rejects.toThrow(Error('Unsupported version of git. Min version must be 2.30.0'));
|
|
45
45
|
}));
|
|
46
46
|
it('fails when Git minor version is lower', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
47
47
|
//Given/When
|
|
@@ -49,7 +49,7 @@ describe('Git', () => {
|
|
|
49
49
|
version: jest.fn().mockReturnValue({ major: 3, minor: 36 }),
|
|
50
50
|
};
|
|
51
51
|
//Then
|
|
52
|
-
yield expect(Git_1.Git.versionCheck(mock)).rejects.toThrow(Error('Unsupported version of git. Min version must be 2.
|
|
52
|
+
yield expect(Git_1.Git.versionCheck(mock)).rejects.toThrow(Error('Unsupported version of git. Min version must be 2.30.0'));
|
|
53
53
|
}));
|
|
54
54
|
it('fails when Git patch version is more than 0', () => {
|
|
55
55
|
//Given/When
|