Yuki Takei 2 anni fa
parent
commit
cadd13ebe8

+ 6 - 5
packages/remark-lsx/src/server/routes/list-pages/add-num-condition.spec.ts

@@ -25,11 +25,12 @@ describe('addNumCondition() throws 400 http-errors instance ', () => {
 describe('addNumCondition() set skip and limit with', () => {
 describe('addNumCondition() set skip and limit with', () => {
 
 
   it.concurrent.each`
   it.concurrent.each`
-    offset  | limit     | expectedSkip   | expectedLimit
-    ${1}    | ${-1}     | ${1}           | ${null}
-    ${0}    | ${0}      | ${null}        | ${0}
-    ${0}    | ${10}     | ${null}        | ${10}
-    ${NaN}  | ${NaN}    | ${null}        | ${null}
+    offset        | limit           | expectedSkip   | expectedLimit
+    ${1}          | ${-1}           | ${1}           | ${null}
+    ${0}          | ${0}            | ${null}        | ${0}
+    ${0}          | ${10}           | ${null}        | ${10}
+    ${NaN}        | ${NaN}          | ${null}        | ${null}
+    ${undefined}  | ${undefined}    | ${null}        | ${50}
   `("{ offset: $offset, limit: $limit }'", ({
   `("{ offset: $offset, limit: $limit }'", ({
     offset, limit, expectedSkip, expectedLimit,
     offset, limit, expectedSkip, expectedLimit,
   }) => {
   }) => {