          export {
              defstruct
        };
+
+
          const __MODULE__ = Erlang.atom('Bear');
          function defstruct(trunk = true)        {
                  return     {

    end

    js_code = """
        import * as Bear from 'animals/bear';
         import * as Elephant from 'animals/elephant';
         const __MODULE__ = Erlang.atom('Animals');
         let something_else = fun([[], function()    {

    assert_translation(ex_ast, js_code)
  end


  should "translate modules with inner module that has inner module" do
    ex_ast = quote do
      defmodule Animals do

        defmodule Elephant do
          defstruct trunk: true

          defmodule Bear do
            defstruct trunk: true
          end
        end


