summaryrefslogtreecommitdiff
path: root/tools/eslint/node_modules/escope/node_modules/es6-weak-map/node_modules/es5-ext/test/function/#/not.js
blob: c0f5e9d4b989a50bada7fd7058567b78e4a55262 (plain)
1
2
3
4
5
6
7
8
9
10
11
'use strict';

var identity = require('../../../function/identity')
  , noop     = require('../../../function/noop');

module.exports = function (t, a) {
	a(t.call(identity)(''), true, "Falsy");
	a(t.call(noop)(), true, "Undefined");
	a(t.call(identity)({}), false, "Any object");
	a(t.call(identity)(true), false, "True");
};