# 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
    1424x
    24x

    24x
    5x
    5x

    7x
    7x

    5x

     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;
    };