Skip to content

Commit f25ecc2

Browse files
Update test
1 parent 81a62c5 commit f25ecc2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: src/plugin/composables/__tests__/icons.test.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { describe, it, expect } from 'vitest';
2-
// import { inject } from 'vue';
32
import {
43
useGetIcon
54
} from '../icons';
@@ -37,15 +36,15 @@ describe('Icon Composable', () => {
3736
icon: undefined,
3837
iconOptions: {},
3938
name: 'loading',
40-
})).toThrowError('VInlineFields: No VInlineFields default undefined icon set found for loading. Please set the icon prop.');
39+
})).toThrowError('[VInlineFields]: No default undefined icon set found.');
4140
});
4241

4342
it('throws error if supplied name not found', () => {
4443
expect(() => useGetIcon({
4544
icon: undefined,
4645
iconOptions,
4746
name: 'foobar',
48-
})).toThrowError(`VInlineFields: No foobar icon found. Please set the icon prop, or set the default icon set to 'mdi' or 'fa'`);
47+
})).toThrowError('[VInlineFields]: No foobar icon found.');
4948
});
5049
});
5150
});

0 commit comments

Comments
 (0)