diff options
Diffstat (limited to 'webapp/tests/client_team.test.jsx')
-rw-r--r-- | webapp/tests/client_team.test.jsx | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/webapp/tests/client_team.test.jsx b/webapp/tests/client_team.test.jsx index 5fac2da6d..20610f676 100644 --- a/webapp/tests/client_team.test.jsx +++ b/webapp/tests/client_team.test.jsx @@ -23,19 +23,20 @@ describe('Client.Team', function() { }); it('createTeam', function(done) { - var client = TestHelper.createClient(); var team = TestHelper.fakeTeam(); - client.createTeam( - team, - function(data) { - assert.equal(data.id.length > 0, true); - assert.equal(data.name, team.name); - done(); - }, - function(err) { - done(new Error(err.message)); - } - ); + TestHelper.initBasic(() => { + TestHelper.basicClient().createTeam( + team, + function(data) { + assert.equal(data.id.length > 0, true); + assert.equal(data.name, team.name); + done(); + }, + function(err) { + done(new Error(err.message)); + } + ); + }); }); it('getAllTeams', function(done) { |