Commit c1e2b71c authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Fix up Serializer spec.

It still referenced the old Esprima engine.
parent 89af5611
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
require "jsduck/js/esprima"
require "rkelly"
require "jsduck/js/rkelly_adapter"
require "jsduck/js/serializer"

describe JsDuck::Js::Serializer do
  def to_s(string)
    ast = JsDuck::Js::Esprima.instance.parse(string)
    ast = RKelly::Parser.new.parse(string)
    ast = JsDuck::Js::RKellyAdapter.new.adapt(ast)
    return JsDuck::Js::Serializer.new.to_s(ast)
  end