Skip to content

arrayLimit does not throw error when throwOnLimitExceeded flag is true #529

@radualex

Description

@radualex

Hello,

I have used the throwOnLimitExceeded flag to throw when limits are exceeded. However, it seems that arrayLimit does not throw as expected, and it returns the object format when limit is exceeded, which I think is the default behavior.

This is the configuration:
Image

Based on this configuration, I would expect the following test to pass:
Image

Instead I received the object format:

    - Expected  - 1
    + Received  + 5

    - Object {}
    + Object {
    +   "a": Object {
    +     "1001": "b",
    +   },
    + }

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions