UNPKG

blueimp-file-upload

Version:

File Upload widget with multiple file selection, drag&drop support, progress bar, validation and preview images, audio and video for jQuery. Supports cross-domain, chunked and resumable file uploads. Works with any server-side platform (Google App Eng

22 lines (17 loc) 411 B
require('../test/common'); function Dog() {} Dog.prototype.seeCat = function() { this.bark('whuf, whuf'); this.run(); } Dog.prototype.bark = function(bark) { require('sys').puts(bark); } var gently = new (require('gently')) , assert = require('assert') , dog = new Dog(); gently.expect(dog, 'bark', function(bark) { assert.equal(bark, 'whuf, whuf'); }); gently.expect(dog, 'run'); dog.seeCat();