Skip to content

Instantly share code, notes, and snippets.

@c089
Created May 7, 2013 14:36
Show Gist options
  • Save c089/5533059 to your computer and use it in GitHub Desktop.
Save c089/5533059 to your computer and use it in GitHub Desktop.
buster.js failing stubs since sinon 1.7 release
var config = module.exports;
config.Tests = {
env: 'browser',
tests: [
'*Spec.js'
]
};
{
"name": "foo",
"version": "0.0.0",
"description": "ERROR: No README.md file found!",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": "",
"author": "",
"license": "BSD",
"dependencies": {
"buster": "0.6.x"
}
}
buster.spec.expose();
describe('stubbing', function () {
it('should stub', function () {
var stub = this.stub().returns(1);
expect(stub()).toBe(1);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment