var painless = require('../../assertion/painless')
var t        = painless.assert
var test     = painless.createGroup('Test object/stampit (basic)')

var stampit = require('../../../src/object/stampit')

// Basics
//

test('.create()', () => {
  const stamp = stampit({ methods: {
    foo() { return 'foo'; }
  }});

  t.is(stamp.create().foo(), 'foo',
    'Should produce an object from specified prototypes.');
});

test('.create(properties)', () => {
  'use strict'
  let stamp = stampit({ refs: { foo: 'bar' } });
  const obj = stamp.create({ foo: 'foo' });

  t.is(obj.foo, 'foo',
    'should override defaults.');
});

var painless = require('../../assertion/painless')
var t        = painless.assert
var test     = painless.createGroup('Test object/stampit (basic)')

var stampit = require('../../../src/object/stamp')

// Basics
//

test('.create()', () => {
  const stamp = stampit({ methods: {
    foo() { return 'foo'; }
  }});

  t.is(stamp.create().foo(), 'foo',
    'Should produce an object from specified prototypes.');
});


update test stamp/basics — use new version 3 stampit