+
+ You are updating the config for the following VINs: {vinCSV}.
+
+
handleChange()}
+ />
+ }
+ />
+
+ );
+});
\ No newline at end of file
diff --git a/src/components/BulkActions/actions/UpdateConfig.test.jsx b/src/components/BulkActions/actions/UpdateConfig.test.jsx
new file mode 100644
index 0000000..6b5c189
--- /dev/null
+++ b/src/components/BulkActions/actions/UpdateConfig.test.jsx
@@ -0,0 +1,40 @@
+jest.mock("../../Contexts/UserContext");
+jest.mock("../../Contexts/StatusContext");
+jest.mock("../../../services/vehiclesAPI");
+
+import React from "react";
+import {
+ render,
+ act,
+} from "@testing-library/react";
+import { UserProvider, setToken } from "../../Contexts/UserContext";
+import { StatusProvider } from "../../Contexts/StatusContext";
+import { TEST_AUTH_OBJECT_FISKER } from "../../../utils/testing";
+import UpdateConfig from "./UpdateConfig";
+import vehiclesAPI from "../../../services/vehiclesAPI";
+
+describe("BulkActions/UpdateConfig", () => {
+ beforeAll(() => {
+ setToken(TEST_AUTH_OBJECT_FISKER);
+ });
+
+ it("makes request to update the config of multiple vehicles", async () => {
+ const api = jest.spyOn(vehiclesAPI, "updateConfig");
+ const ref = React.createRef();
+
+ render(
+