How to use thallium - 10 common examples

To help you get started, we’ve selected a few thallium 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 isiahmeadows / thallium / playground / all / common.js View on Github external
t.test("resolveDefault()", function () {
        t.test("gets CJS default functions", function () {})
        t.test("gets CJS default functions with `default` property", function () {}) // eslint-disable-line max-len
        t.test("gets CJS default arrays with `default` property", function () {}) // eslint-disable-line max-len
        t.test("gets CJS default objects", function () {})
        t.test("gets CJS default primitives", function () {})
        t.test("gets ES6 default functions", function () { t.skip() })
        t.test("gets ES6 default objects", function () { t.skip() })
        t.test("gets ES6 default arrays", function () { t.skip() })
        t.test("gets ES6 default objects with `default` property", fail)
        t.test("gets ES6 default functions with `default` property", fail)
        t.test("gets ES6 default arrays with `default` property", fail)
        t.test("gets ES6 default primitives", function () { t.skip() })
    })
github isiahmeadows / thallium / playground / pass-skip / common.js View on Github external
t.test("resolveDefault()", function () {
        t.test("gets CJS default functions", function () {})
        t.test("gets CJS default functions with `default` property", function () {}) // eslint-disable-line max-len
        t.test("gets CJS default arrays with `default` property", function () {}) // eslint-disable-line max-len
        t.test("gets CJS default objects", function () {})
        t.test("gets CJS default primitives", function () {})
        t.test("gets ES6 default functions", function () {})
        t.test("gets ES6 default objects", function () {})
        t.test("gets ES6 default arrays", function () {})
        t.test("gets ES6 default objects with `default` property", skip)
        t.test("gets ES6 default functions with `default` property", skip)
        t.test("gets ES6 default arrays with `default` property", skip)
        t.test("gets ES6 default primitives", function () {})
    })
github isiahmeadows / thallium / playground / fail / timeouts.js View on Github external
t.test("core (timeouts) (FLAKE)", function () {
    t.test("succeeds with own", fail)
    t.test("fails with own", fail)
    t.test("succeeds with inherited", fail)
    t.test("fails with inherited", fail)
    t.test("gets own set timeout", fail)
    t.test("gets own inline set timeout", fail)
    t.test("gets own sync inner timeout", fail)
    t.test("gets default timeout", fail)
})
github isiahmeadows / thallium / playground / pass-fail / timeouts.js View on Github external
t.test("core (timeouts) (FLAKE)", function () {
    t.test("succeeds with own", function () {})
    t.test("fails with own", function () {})
    t.test("succeeds with inherited", function () {})
    t.test("fails with inherited", function () {})
    t.test("gets own set timeout", fail)
    t.test("gets own inline set timeout", fail)
    t.test("gets own sync inner timeout", fail)
    t.test("gets default timeout", function () {})
})
github isiahmeadows / thallium / playground / fail / basic.js View on Github external
t.test("core (basic)", function () {
    t.test("has `base()`", fail)
    t.test("has `test()`", fail)
    t.test("has `parent()`", fail)
    t.test("can accept a string + function", fail)
    t.test("can accept a string", fail)
    t.test("returns the current instance when given a callback", fail)
    t.test("returns a prototypal clone when not given a callback", fail)
    t.test("runs block tests within tests", fail)
    t.test("runs successful inline tests within tests", fail)
    t.test("accepts a callback with `t.run()`", fail)
})
github isiahmeadows / thallium / playground / skip-fail / timeouts.js View on Github external
t.test("core (timeouts) (FLAKE)", function () {
    t.test("succeeds with own", function () { t.skip() })
    t.test("fails with own", function () { t.skip() })
    t.test("succeeds with inherited", function () { t.skip() })
    t.test("fails with inherited", function () { t.skip() })
    t.test("gets own set timeout", fail)
    t.test("gets own inline set timeout", fail)
    t.test("gets own sync inner timeout", fail)
    t.test("gets default timeout", function () { t.skip() })
})
github isiahmeadows / thallium / playground / pass-skip / global.js View on Github external
"use strict"

var t = require("thallium")

t.test("works", function () {})
t.test("doesn't work", function () {})
t.test("what", function () {})
t.test("ever", function () {})
t.test("you may stop now", function () {})
github isiahmeadows / thallium / playground / pass-skip / global.js View on Github external
"use strict"

var t = require("thallium")

t.test("works", function () {})
t.test("doesn't work", function () {})
t.test("what", function () {})
t.test("ever", function () {})
t.test("you may stop now", function () {})
github isiahmeadows / thallium / playground / flat / pass / global.js View on Github external
"use strict"

var t = require("thallium")

t.test("works", function () {})
t.test("doesn't work", function () {})
t.test("what", function () {})
t.test("ever", function () {})
t.test("you may stop now", function () {})
github isiahmeadows / thallium / playground / flat / pass / global.js View on Github external
"use strict"

var t = require("thallium")

t.test("works", function () {})
t.test("doesn't work", function () {})
t.test("what", function () {})
t.test("ever", function () {})
t.test("you may stop now", function () {})

thallium

A simple, unopinionated, modular test framework

ISC
Latest version published 8 years ago

Package Health Score

39 / 100
Full package analysis

Popular thallium functions