teal-runtime-specs

0.16.1 • Public • Published

This is the official test suite that teal runtime implementations must pass in order to label themselves as teal compliant.

Work in progress

We are currently in the process of extracting the default JS/DOM runtime from teal core into its own package. In this step we'll also migrate the existing test into this repository.

The goal is that all these runtimes pass the complete test suite:

  • teal-js
  • teal-react
  • teal-php

Example

var test = require('teal-runtime-specs')
var plugin = require('../')
 
test(function(tl) {
 
  // set up the runtime
  tl.use(plugin)
 
  // return a function that renders HTML
  return function(ref, data, cb) {
    var html = tl.render(ref, data)
    cb(null, html)
  }  
})

Dependencies (3)

Dev Dependencies (1)

Package Sidebar

Install

npm i teal-runtime-specs

Weekly Downloads

1

Version

0.16.1

License

MIT

Last publish

Collaborators

  • fgnass