Skip to content

Commit b3fc53b

Browse files
committed
Tests for memberBalances
1 parent 4c76898 commit b3fc53b

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

lib/test/js/test.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5518,6 +5518,19 @@ describe('Locations', function() {
55185518

55195519
});
55205520

5521+
require.register("test/memberBalances", function(exports, require, module) {
5522+
describe('Member Balances', function() {
5523+
return it('should be able to load all member balances for team', function(done) {
5524+
return teamsnap.loadMemberBalances(team.id, function(err, result) {
5525+
expect(err).to.be["null"];
5526+
result.should.be.an('array');
5527+
return done();
5528+
});
5529+
});
5530+
});
5531+
5532+
});
5533+
55215534
require.register("test/memberEmailAddresses", function(exports, require, module) {
55225535
describe('Member Email Addresses', function() {
55235536
var email, member;

test/memberBalances.coffee

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
describe 'Member Balances', ->
2+
3+
it 'should be able to load all member balances for team', (done) ->
4+
teamsnap.loadMemberBalances team.id, (err, result) ->
5+
expect(err).to.be.null
6+
result.should.be.an('array')
7+
done()

0 commit comments

Comments
 (0)