Lines Matching refs:test

3 var test = require('tape');  variable
8 test('functionBind is a function', function (t) {
13 test('non-functions', function (t) {
24 test('without a context', function (t) {
25 t.test('binds properly', function (st) {
39 t.test('binds properly, and still supplies bound arguments', function (st) {
53 t.test('returns properly', function (st) {
67 t.test('returns properly with bound arguments', function (st) {
81 t.test('called as a constructor', function (st) {
85 st.test('returns object value', function (sst) {
93 st.test('does not return primitive value', function (sst) {
100 …st.test('object from bound constructor is instance of original and bound constructor', function (s…
118 test('with a context', function (t) {
119 t.test('with no bound arguments', function (st) {
134 t.test('with bound arguments', function (st) {
149 t.test('returns properly', function (st) {
165 t.test('returns properly with bound arguments', function (st) {
181 t.test('passes the correct arguments when called as a constructor', function (st) {
193 t.test('has the new instance\'s context when called as a constructor', function (st) {
210 test('bound function length', function (t) {
211 t.test('sets a correct length without thisArg', function (st) {
218 t.test('sets a correct length with thisArg', function (st) {
225 t.test('sets a correct length without thisArg and first argument', function (st) {
232 t.test('sets a correct length with thisArg and first argument', function (st) {
239 t.test('sets a correct length without thisArg and too many arguments', function (st) {
246 t.test('sets a correct length with thisArg and too many arguments', function (st) {