mirror of
https://github.com/crazy-max/ghaction-upx.git
synced 2024-12-25 09:36:07 -07:00
24 lines
472 B
JavaScript
24 lines
472 B
JavaScript
|
var test = require('tape');
|
||
|
|
||
|
var isObject = require('../index');
|
||
|
|
||
|
test('returns true for objects', function (assert) {
|
||
|
assert.equal(isObject({}), true);
|
||
|
assert.equal(isObject([]), true);
|
||
|
|
||
|
assert.end();
|
||
|
});
|
||
|
|
||
|
test('returns false for null', function (assert) {
|
||
|
assert.equal(isObject(null), false);
|
||
|
|
||
|
assert.end();
|
||
|
});
|
||
|
|
||
|
test('returns false for primitives', function (assert) {
|
||
|
assert.equal(isObject(42), false);
|
||
|
assert.equal(isObject('foo'), false);
|
||
|
|
||
|
assert.end();
|
||
|
});
|