mirror of
https://github.com/rommapp/romm.git
synced 2026-12-04 21:02:21 +01:00
test(streaming): render the real settings section in the streaming tests
The stub was justified by an auto-stub that mount never applies, and the real section already renders both slots the tests read.
This commit is contained in:
@@ -30,13 +30,6 @@ vi.mock("@/v2/composables/useSnackbar", () => ({
|
||||
useSnackbar: () => ({ success: vi.fn(), error: vi.fn() }),
|
||||
}));
|
||||
|
||||
// The auto-stub drops slot content, and the fleet rows live in the section's
|
||||
// default slot.
|
||||
const SettingsSectionStub = {
|
||||
name: "SettingsSection",
|
||||
template: '<div><slot name="header-actions" /><slot /></div>',
|
||||
};
|
||||
|
||||
const RBtnStub = {
|
||||
name: "RBtn",
|
||||
props: ["disabled", "prependIcon"],
|
||||
@@ -61,7 +54,6 @@ async function mountSection() {
|
||||
const wrapper = mount(StreamingSection, {
|
||||
global: {
|
||||
stubs: {
|
||||
SettingsSection: SettingsSectionStub,
|
||||
RBtn: RBtnStub,
|
||||
RIcon: true,
|
||||
RSpinner: true,
|
||||
|
||||
Reference in New Issue
Block a user