Remove unused mock endpoint handler (#34301)
This commit is contained in:
@@ -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,
|
||||
];
|
||||
|
||||
@@ -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"),
|
||||
() => {
|
||||
|
||||
Reference in New Issue
Block a user