# All files / src/utils resizable-limits.js

100% Statements 8/8
100% Branches 0/0
100% Functions 2/2
100% Lines 8/8

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    1422x
    22x

    22x
    2x
    2x

    4x
    4x

    2x

     import Syntax from "../Syntax";
    import walkNode from "./walk-node";

    export const parseBounds = node => {
      const memory = {};
      walkNode({
        [Syntax.Pair]: ({ params }) => {
          const [{ value: key }, { value }] = params;
          memory[key] = parseInt(value);
        },
      })(node);
      return memory;
    };