You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
496 B
25 lines
496 B
var test = require('tape'); |
|
|
|
var Individual = require('./index.js'); |
|
|
|
test('can create Individual', function (assert) { |
|
var obj = Individual('someName', 42); |
|
|
|
assert.equal(obj, 42); |
|
|
|
var obj2 = Individual('someName', 50); |
|
|
|
assert.equal(obj, 42); |
|
|
|
assert.end(); |
|
}); |
|
|
|
test('different keys', function (assert) { |
|
var obj = Individual('someName2', 42); |
|
var obj2 = Individual('otherName2', 50); |
|
|
|
assert.equal(obj, 42); |
|
assert.equal(obj2, 50); |
|
|
|
assert.end(); |
|
});
|
|
|