11 var Instrument = new Type('Instrument', function(name){
15 Instrument.implement({
18 return this.property + ' ' + this.name;
25 var Car = new Type('Car', function(name){
34 return this.name + '_' + this.property;
39 describe('Type (private)', function(){
41 it('should allow implementation over existing methods when browser option is not set', function(){
42 Instrument.implement({ property: 'staff' });
43 var myInstrument = new Instrument('xeelophone');
44 expect(myInstrument.method()).to.equal('staff xeelophone');
47 it('should allow generic calls', function(){
48 expect(Car.method({name: 'ciccio', property: 'bello'})).to.equal('ciccio_bello');
51 it("should have a 'native' type", function(){
52 expect(Type.isType(Car)).to.equal(true);