Forráskód Böngészése

test: update broken implementation test

Peter 1 éve
szülő
commit
f6c4c02cb5
1 módosított fájl, 1 hozzáadás és 2 törlés
  1. 1 2
      src/core/nodeOps.test.ts

+ 1 - 2
src/core/nodeOps.test.ts

@@ -118,12 +118,11 @@ describe("nodeOps", () => {
         createElement: (tag) => ({ text: tag + " alright job" }),
       });
       const nodeOps = useNodeOpsWithContext({}, [plugin1, plugin2]);
-      const returnValue = { element: "I'm an element" };
 
       const noMatchingFilter = nodeOps.createElement("Bad tag", false, "", {
         visible: false,
       });
-      expect(noMatchingFilter).equals(null);
+      expect(noMatchingFilter.text).toBeUndefined();
 
       const matchesFilter = nodeOps.createElement("Awesome tag", false, "", {
         visible: false,