Skip to content

Commit 5aed47f

Browse files
committed
Merge pull request #90 from mstuart/unit-tests
Fix broken unit tests caused by new should.js version
2 parents f441780 + 8b3046b commit 5aed47f

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
},
2020
"dependencies": {},
2121
"devDependencies": {
22-
"grunt": "*",
23-
"grunt-contrib-jshint": "*",
24-
"grunt-contrib-uglify": "*",
25-
"grunt-update-submodules": "*",
26-
"chai": "*",
22+
"grunt": "0.4.2",
23+
"grunt-contrib-jshint": "0.8.0",
24+
"grunt-contrib-uglify": "0.2.7",
25+
"grunt-update-submodules": "0.2.1",
26+
"chai": "1.8.1",
2727
"mocha": "~1.7.4",
28-
"should": "*",
29-
"jsdom": "*"
28+
"should": "2.1.1",
29+
"jsdom": "0.8.10"
3030
},
3131
"scripts": {
3232
"test": "mocha test/spec/test.js"

test/spec/test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,23 @@ describe('JavaScript API', function () {
2525
});
2626

2727
it('Should have a PAYPAL namespace', function () {
28-
namespace.should.be.a('object');
28+
namespace.should.be.an.Object;
2929
});
3030

3131
it('Should have a PAYPAL.apps namespace', function () {
32-
namespace.apps.should.be.a('object');
32+
namespace.apps.should.be.an.Object;
3333
});
3434

3535
it('Should have a PAYPAL.apps.ButtonFactory namespace', function () {
36-
namespace.apps.ButtonFactory.should.be.a('object');
36+
namespace.apps.ButtonFactory.should.be.an.Object;
3737
});
3838

3939
it('Should have a configuration object', function () {
40-
namespace.apps.ButtonFactory.config.should.be.a('object');
40+
namespace.apps.ButtonFactory.config.should.be.an.Object;
4141
});
4242

4343
it('Should have a create method', function () {
44-
namespace.apps.ButtonFactory.create.should.be.a('function');
44+
namespace.apps.ButtonFactory.create.should.be.a.Function;
4545
});
4646

4747
it('Create return false if no parameters', function () {

0 commit comments

Comments
 (0)