Remove unused mock endpoint handler (#34301)

This commit is contained in:
jacobshandling
2025-10-17 16:10:21 -07:00
committed by GitHub
parent e995891359
commit f80d8a5eb8
2 changed files with 0 additions and 12 deletions
-2
View File
@@ -1,7 +1,6 @@
import { defaultActivityHandler } from "./handlers/activity-handlers";
import {
defaultDeviceHandler,
defaultDeviceMappingHandler,
defaultMacAdminsHandler,
} from "./handlers/device-handler";
@@ -21,7 +20,6 @@ export const baseUrl = (path: string) => {
// method in the test file itself.
const handlers = [
defaultDeviceHandler,
defaultDeviceMappingHandler,
defaultMacAdminsHandler,
defaultActivityHandler,
];
-10
View File
@@ -45,16 +45,6 @@ export const customDeviceHandler = (overrides?: Partial<IDeviceUserResponse>) =>
return HttpResponse.json(response);
});
export const defaultDeviceMappingHandler = http.get(
baseUrl("/device/:token/device_mapping"),
() => {
return HttpResponse.json({
device_mapping: [createMockDeviceUser()],
host_id: 1,
});
}
);
export const defaultMacAdminsHandler = http.get(
baseUrl("/device/:token/macadmins"),
() => {