v3 adapt v2: port chat routes and group.update

This commit is contained in:
Matteo Pagliazzi
2016-04-05 12:02:00 +02:00
parent 0a40c56973
commit 374d11b0e4
9 changed files with 47 additions and 18 deletions

View File

@@ -1,10 +1,11 @@
import {
generateGroup,
createAndPopulateGroup,
generateUser,
translate as t,
} from '../../../helpers/api-integration/v2';
xdescribe('POST /groups/:id', () => {
describe('POST /groups/:id', () => {
context('user is not the leader of the group', () => {
let user, otherUser, groupUserDoesNotOwn;

View File

@@ -3,7 +3,7 @@ import {
translate as t,
} from '../../../../helpers/api-integration/v2';
xdescribe('DELETE /groups/:id/chat', () => {
describe('DELETE /groups/:id/chat', () => {
let group, message, user;
beforeEach(async () => {

View File

@@ -2,7 +2,7 @@ import {
createAndPopulateGroup,
} from '../../../../helpers/api-integration/v2';
xdescribe('GET /groups/:id/chat', () => {
describe('GET /groups/:id/chat', () => {
context('group with multiple messages', () => {
let group, member, user;

View File

@@ -3,7 +3,7 @@ import {
translate as t,
} from '../../../../helpers/api-integration/v2';
xdescribe('POST /groups/:id/chat', () => {
describe('POST /groups/:id/chat', () => {
let group, user;
beforeEach(async () => {

View File

@@ -4,7 +4,7 @@ import {
translate as t,
} from '../../../../helpers/api-integration/v2';
xdescribe('POST /groups/:id/chat/:id/clearflags', () => {
describe('POST /groups/:id/chat/:id/clearflags', () => {
let guild;
beforeEach(async () => {

View File

@@ -4,7 +4,7 @@ import {
translate as t,
} from '../../../../helpers/api-integration/v2';
xdescribe('POST /groups/:id/chat/:id/flag', () => {
describe('POST /groups/:id/chat/:id/flag', () => {
context('another member\'s message', () => {
let group, member, message, user;

View File

@@ -4,7 +4,7 @@ import {
translate as t,
} from '../../../../helpers/api-integration/v2';
xdescribe('POST /groups/:id/chat/:id/like', () => {
describe('POST /groups/:id/chat/:id/like', () => {
context('another member\'s message', () => {
let group, member, message, user;