Skip to content

Commit 55262be

Browse files
committed
Update uninstall tests
1 parent b4dc39d commit 55262be

5 files changed

Lines changed: 12 additions & 7 deletions

File tree

tests/commands/__snapshots__/filter.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ exports[`Filter packages 1`] = `
44
┌─────────────────────────┬──────────┬─────────┬───────────┬────────────┬─────────┬───────────────────────────────┐
55
│ Id │ Name │ Version │ Installed │ Date │ License │ Tags │
66
├─────────────────────────┼──────────┼─────────┼───────────┼────────────┼─────────┼───────────────────────────────┤
7-
│ surge-synthesizer/surge │ Surge XT │ 1.3.4 │ │ 2024-08-11 │ gpl-3.0 │ Instrument, Synth, Modulation │
7+
│ surge-synthesizer/surge │ Surge XT │ 1.3.4 │ - │ 2024-08-11 │ gpl-3.0 │ Instrument, Synth, Modulation │
88
└─────────────────────────┴──────────┴─────────┴───────────┴────────────┴─────────┴───────────────────────────────┘
99
`;
1010

tests/commands/__snapshots__/list.test.ts.snap

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ exports[`List packages 1`] = `
3434
├───────────────────────────────────────────┼───────────────────────────┼─────────┼───────────┼────────────┼───────────────┼───────────────────────────────────┤
3535
│ tesselode/cocoa-delay │ Cocoa Delay │ 1.0.0 │ - │ 2018-09-01 │ mit │ Effect, Delay, Warm │
3636
├───────────────────────────────────────────┼───────────────────────────┼─────────┼───────────┼────────────┼───────────────┼───────────────────────────────────┤
37-
│ surge-synthesizer/surge │ Surge XT │ 1.3.4 │ - │ 2024-08-11 │ gpl-3.0 │ Instrument, Synth, Modulation │
37+
│ surge-synthesizer/surge │ Surge XT │ 1.3.4 │ │ 2024-08-11 │ gpl-3.0 │ Instrument, Synth, Modulation │
3838
├───────────────────────────────────────────┼───────────────────────────┼─────────┼───────────┼────────────┼───────────────┼───────────────────────────────────┤
3939
│ surge-synthesizer/monique-monosynth │ Monique │ 1.2.0 │ - │ 2021-12-13 │ gpl-3.0 │ Instrument, Synth, Bass, Lead │
4040
├───────────────────────────────────────────┼───────────────────────────┼─────────┼───────────┼────────────┼───────────────┼───────────────────────────────────┤
@@ -188,6 +188,8 @@ exports[`List packages 2`] = `
188188
┌─────────────────────────┬──────────┬─────────┬───────────┬────────────┬─────────┬───────────────────────────────┐
189189
│ Id │ Name │ Version │ Installed │ Date │ License │ Tags │
190190
├─────────────────────────┼──────────┼─────────┼───────────┼────────────┼─────────┼───────────────────────────────┤
191-
│ surge-synthesizer/surge │ Surge XT │ 1.3.4 │ - │ 2024-08-11 │ gpl-3.0 │ Instrument, Synth, Modulation │
191+
│ surge-synthesizer/surge │ Surge XT │ 1.3.4 │ ✓ │ 2024-08-11 │ gpl-3.0 │ Instrument, Synth, Modulation │
192+
├─────────────────────────┼──────────┼─────────┼───────────┼────────────┼─────────┼───────────────────────────────┤
193+
│ surge-synthesizer/surge │ Surge XT │ 1.3.4 │ ✓ │ 2024-08-11 │ gpl-3.0 │ Instrument, Synth, Modulation │
192194
└─────────────────────────┴──────────┴─────────┴───────────┴────────────┴─────────┴───────────────────────────────┘
193195
`;

tests/commands/__snapshots__/search.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ exports[`Search packages 1`] = `
88
├─────────────────────────┼─────────────┼─────────┼───────────┼────────────┼─────────┼────────────────────────────────┤
99
│ tesselode/flutterbird │ Flutterbird │ 1.0.1 │ - │ 2018-09-06 │ mit │ Effect, Pitch, Modulation │
1010
├─────────────────────────┼─────────────┼─────────┼───────────┼────────────┼─────────┼────────────────────────────────┤
11-
│ surge-synthesizer/surge │ Surge XT │ 1.3.4 │ - │ 2024-08-11 │ gpl-3.0 │ Instrument, Synth, Modulation │
11+
│ surge-synthesizer/surge │ Surge XT │ 1.3.4 │ │ 2024-08-11 │ gpl-3.0 │ Instrument, Synth, Modulation │
1212
└─────────────────────────┴─────────────┴─────────┴───────────┴────────────┴─────────┴────────────────────────────────┘
1313
`;
1414

tests/commands/__snapshots__/uninstall.test.ts.snap

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@ exports[`Uninstall package 1`] = `
44
┌─────────────────────────┬──────────┬─────────┬───────────┬────────────┬─────────┬───────────────────────────────┐
55
│ Id │ Name │ Version │ Installed │ Date │ License │ Tags │
66
├─────────────────────────┼──────────┼─────────┼───────────┼────────────┼─────────┼───────────────────────────────┤
7-
│ surge-synthesizer/surge │ Surge XT │ 1.3.4 │ │ 2024-08-11 │ gpl-3.0 │ Instrument, Synth, Modulation │
7+
│ surge-synthesizer/surge │ Surge XT │ 1.3.4 │ - │ 2024-08-11 │ gpl-3.0 │ Instrument, Synth, Modulation │
88
└─────────────────────────┴──────────┴─────────┴───────────┴────────────┴─────────┴───────────────────────────────┘
99
`;
1010

1111
exports[`Uninstall package 2`] = `
1212
┌─────────────────────────┬──────────┬─────────┬───────────┬────────────┬─────────┬───────────────────────────────┐
1313
│ Id │ Name │ Version │ Installed │ Date │ License │ Tags │
1414
├─────────────────────────┼──────────┼─────────┼───────────┼────────────┼─────────┼───────────────────────────────┤
15-
│ surge-synthesizer/surge │ Surge XT │ 1.3.4 │ - │ 2024-08-11 │ gpl-3.0 │ Instrument, Synth, Modulation │
15+
│ surge-synthesizer/surge │ Surge XT │ 1.3.1 │ - │ 2024-03-02 │ gpl-3.0 │ Instrument, Synth, Modulation │
1616
└─────────────────────────┴──────────┴─────────┴───────────┴────────────┴─────────┴───────────────────────────────┘
1717
`;
18+
19+
exports[`Uninstall package 3`] = `No results found`;

tests/commands/uninstall.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { cli } from '../shared';
33
import { RegistryType } from '@open-audio-stack/core';
44

55
test('Uninstall package', async () => {
6-
expect(cli(RegistryType.Plugins, 'install', 'surge-synthesizer/surge')).toMatchSnapshot();
76
expect(cli(RegistryType.Plugins, 'uninstall', 'surge-synthesizer/surge')).toMatchSnapshot();
7+
expect(cli(RegistryType.Plugins, 'uninstall', 'surge-synthesizer/surge@1.3.1')).toMatchSnapshot();
8+
expect(cli(RegistryType.Plugins, 'uninstall', 'surge-synthesizer/surge@0.0.0')).toMatchSnapshot();
89
});

0 commit comments

Comments
 (0)