minor documentation updates
[squeep-api-dingus] / test / lib / common.js
index bacd6be3d54d2aaa7e6b019c98e0e664050392dc..57c4113a9db986dbee499942e6e11ea0a78964b9 100644 (file)
@@ -196,6 +196,32 @@ describe('common', function () {
     });
   }); // responseLogData
 
+  describe('handlerLogData', function () {
+    it('covers', function () {
+      const req = {
+        method: 'GET',
+        somethingElse: 'blah',
+      };
+      const res = {
+        getHeaders: () => ({}),
+        statusCode: 200,
+        blah: 'blah',
+      };
+      const ctx = {};
+      const result = common.handlerLogData(req, res, ctx);
+      assert.deepStrictEqual(result, {
+        req: {
+          method: 'GET',
+        },
+        res: {
+          headers: {},
+          statusCode: 200,
+        },
+        ctx: {},
+      });
+    });
+  }); // handlerLogData
+
   describe('setOptions', function () {
     it('sets options', function () {
       const expected = {