Skip to content

Commit

Permalink
Revert "test: expand tests for caret versions"
Browse files Browse the repository at this point in the history
This reverts commit c47e2fc.
  • Loading branch information
hussainweb committed Apr 29, 2020
1 parent c47e2fc commit 04ca1a8
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions lib/versioning/composer/index.spec.ts
Expand Up @@ -169,14 +169,6 @@ describe('semver.getNewValue()', () => {
toVersion: 'V1.1',
})
).toEqual('V1.1');
expect(
semver.getNewValue({
currentValue: '^1.0',
rangeStrategy: 'pin',
fromVersion: '1.0',
toVersion: 'V1.1',
})
).toEqual('V1.1');
});
it('returns toVersion', () => {
expect(
Expand All @@ -198,36 +190,6 @@ describe('semver.getNewValue()', () => {
})
).toEqual('^1.0');
});
it('bumps caret to same', () => {
expect(
semver.getNewValue({
currentValue: '^1.0.0',
rangeStrategy: 'bump',
fromVersion: '1.0.0',
toVersion: '1.3.5',
})
).toEqual('^1.0');
});
it('replaces caret to same', () => {
expect(
semver.getNewValue({
currentValue: '^1.0.0',
rangeStrategy: 'replace',
fromVersion: '1.0.0',
toVersion: '1.3.5',
})
).toEqual('^1.0');
});
it('replaces short caret', () => {
expect(
semver.getNewValue({
currentValue: '^1.0',
rangeStrategy: 'replace',
fromVersion: '1.0.0',
toVersion: '2.3.5',
})
).toEqual('^2.0');
});
it('handles tilde zero', () => {
expect(
semver.getNewValue({
Expand Down

0 comments on commit 04ca1a8

Please sign in to comment.