UNPKG

jaribu

Version:

a simple, full-featured, JavaScript testing framework

35 lines (32 loc) 869 B
if (typeof define !== 'function') { var define = require('amdefine')(module); } define(['jaribu/helpers', 'jaribu/tools/Write'], function (helpers, Write, undefined) { /* * The Test object is the 'root' object of each test. The test object * contains Scaffolding objects for each of it's test: setup, takedown, * actual (actual is the actual test). * * Assignment of Scaffolding objects to it's properties are handled * later in this function. */ write = new Write(); function Test() {} Test.prototype = { constructor: Test, type: "Test", name: "", desc: "", helpers: helpers.pub, write: write.func, setup: undefined, takedown: undefined, actual: undefined, next: undefined, prev: undefined, parent: undefined, // link to the tests suite object position: null }; return Test; });