How to use the asciidoctor-opal-runtime.Opal.JAVASCRIPT_IO_MODULE function in asciidoctor-opal-runtime

To help you get started, we’ve selected a few asciidoctor-opal-runtime examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github asciidoctor / asciidoctor.js / packages / core / spec / node / asciidoctor.spec.js View on Github external
it('should be able to configure Asciidoctor module', () => {
      /** @namespace Opal.JAVASCRIPT_PLATFORM.JAVASCRIPT_IO_MODULE.JAVASCRIPT_ENGINE.JAVASCRIPT_FRAMEWORK */
      expect(Opal.JAVASCRIPT_IO_MODULE).to.equal('node')
      expect(Opal.JAVASCRIPT_PLATFORM).to.equal('node')
      expect(Opal.JAVASCRIPT_ENGINE).to.equal('v12')
      expect(Opal.JAVASCRIPT_FRAMEWORK).to.equal('lollipop')
      const runtime = asciidoctor.getRuntime()
      expect(runtime.ioModule).to.equal('node')
      expect(runtime.platform).to.equal('node')
      expect(runtime.engine).to.equal('v12')
      expect(runtime.framework).to.equal('lollipop')
    })
  })