Skip to content

Commit 799c92b

Browse files
committed
fixing tests
1 parent 0821174 commit 799c92b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/sv/lib/cli/tests/addon.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,28 @@ import { sanitizeAddons } from '../add/index.ts';
55
describe('sanitizeAddons', () => {
66
it('should find official addon', () => {
77
expect(sanitizeAddons([{ id: 'eslint' }])).toEqual([
8-
{ id: 'eslint', options: [], kind: 'official' }
8+
{ id: 'eslint', options: [], kind: 'official', resolvedId: 'eslint' }
99
]);
1010
});
1111
it('should find official addon with alias', () => {
1212
expect(sanitizeAddons([{ id: 'tailwind' }])).toEqual([
13-
{ id: 'tailwindcss', options: [], kind: 'official' }
13+
{ id: 'tailwindcss', options: [], kind: 'official', resolvedId: 'tailwindcss' }
1414
]);
1515
});
1616
it('should have 2', () => {
1717
expect(sanitizeAddons([{ id: 'eslint' }, { id: 'tailwindcss' }])).toEqual([
18-
{ id: 'eslint', options: [], kind: 'official' },
19-
{ id: 'tailwindcss', options: [], kind: 'official' }
18+
{ id: 'eslint', options: [], kind: 'official', resolvedId: 'eslint' },
19+
{ id: 'tailwindcss', options: [], kind: 'official', resolvedId: 'tailwindcss' }
2020
]);
2121
});
2222
it('should dedupe even with alias', () => {
2323
expect(sanitizeAddons([{ id: 'tailwind' }, { id: 'tailwindcss' }])).toEqual([
24-
{ id: 'tailwindcss', options: [], kind: 'official' }
24+
{ id: 'tailwindcss', options: [], kind: 'official', resolvedId: 'tailwindcss' }
2525
]);
2626
});
2727
it('should find file addons', () => {
2828
expect(sanitizeAddons([{ id: 'file:../' }])).toEqual([
29-
{ id: 'file:../', options: [], kind: 'file' }
29+
{ id: 'file:../', options: [], kind: 'file', resolvedId: '../' }
3030
]);
3131
});
3232
});

0 commit comments

Comments
 (0)