lib/ree_lib/packages/ree_json/spec/ree_json/functions/to_json_spec.rb



# frozen_string_literal: true

RSpec.describe :to_json do
  link :to_json, from: :ree_json

  it {
    expect(to_json({id: 1})).to eq("{\"id\":1}")
  }

  it {
    expect(
      to_json({id: Object.new}, mode: :object)
    ).to eq("{\":id\":{\"^o\":\"Object\"}}")
  }
end