Add API call to get a team by its name (#4690)
* Add API call to get a team by its name * add tests for client side and update route regex * remove action * add check for permissions and create tests
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
b57c9fec89
Коммит
d402b1d010
@@ -328,5 +328,21 @@ describe('Client.Team', function() {
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
it('getTeamByName', function(done) {
|
||||
TestHelper.initBasic(() => {
|
||||
TestHelper.basicClient().getTeamByName(
|
||||
TestHelper.basicTeam().name,
|
||||
function(data) {
|
||||
console.log(data);
|
||||
assert.equal(data.name, TestHelper.basicTeam().name);
|
||||
done();
|
||||
},
|
||||
function(err) {
|
||||
done(new Error(err.message));
|
||||
}
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user