d98762625 7 年之前
父節點
當前提交
5efc3f15f2
共有 3 個文件被更改,包括 6 次插入8 次删除
  1. 4 4
      src/node/apiUtils.mjs
  2. 1 3
      test/tests/assertionHandler.mjs
  3. 1 1
      test/tests/nodeApi/nodeApi.mjs

+ 4 - 4
src/node/apiUtils.mjs

@@ -76,8 +76,8 @@ export function wrap(Operation) {
 
 
 /**
 /**
  * First draft
  * First draft
- * @param input 
- * @param type 
+ * @param input
+ * @param type
  */
  */
 export async function translateTo(input, type) {
 export async function translateTo(input, type) {
     const dish = new Dish();
     const dish = new Dish();
@@ -89,8 +89,8 @@ export async function translateTo(input, type) {
 }
 }
 
 
 /**
 /**
- * 
- * @param searchTerm 
+ *
+ * @param searchTerm
  */
  */
 export function search(searchTerm) {
 export function search(searchTerm) {
 
 

+ 1 - 3
test/tests/assertionHandler.mjs

@@ -9,8 +9,6 @@
  * @license Apache-2.0
  * @license Apache-2.0
  */
  */
 
 
-import assert from "assert";
-
 /**
 /**
  * it - wrapper for assertions to provide a helpful description
  * it - wrapper for assertions to provide a helpful description
  * to the TestRegister
  * to the TestRegister
@@ -27,7 +25,7 @@ import assert from "assert";
  *   assert.equal(1,1)
  *   assert.equal(1,1)
  *   assert.notEqual(3,4)
  *   assert.notEqual(3,4)
  * })
  * })
- * 
+ *
  * @example
  * @example
  * // async assertions
  * // async assertions
  * it("should handle async", async () => {
  * it("should handle async", async () => {

+ 1 - 1
test/tests/nodeApi/nodeApi.mjs

@@ -35,7 +35,7 @@ TestRegister.addApiTests([
         try {
         try {
             const fail = chef.setUnion("1");
             const fail = chef.setUnion("1");
             // shouldnt get here
             // shouldnt get here
-            assert(false);
+            assert(!fail || false);
         } catch (e) {
         } catch (e) {
             assert(true);
             assert(true);
         }
         }