Example #1
0
test("teams_userDefault", async t => {
  await setCurrToken(tokenUserA);
  const teams = _.sortBy(await api.getTeams(), team => team.name);
  t.is(teams[0].name, "team_X1");
  t.is(teams[1].name, "team_X2");
  t.is(teams[2].name, "team_X3");
  t.is(teams[3].name, "team_X4");
  t.is(teams.length, 4);
});
Example #2
0
test("teams_user_E", async t => {
  await setCurrToken(tokenUserE);
  const teams = _.sortBy(await api.getTeams(), team => team.name);
  t.is(teams[0].name, "team_Y1");
  t.is(teams.length, 1);
});