Pavel Birukov 09c2ab416f Make CI green again (#150)
* Disable cache on travis

* Fix linter failures

* Disable PushRule test (EE-only feature)
2018-08-14 13:18:09 -04:00

20 lines
589 B
JavaScript

import { PushRule } from '../../../src';
describe('PushRule', () => {
// the feature is not available for CE users https://gitlab.com/gitlab-org/gitlab-ee/issues/3825
xit('should create or edit push rule on upsert', async () => {
const service = new PushRule({
url: process.env.GITLAB_URL,
token: process.env.PERSONAL_ACCESS_TOKEN,
});
const pushRules = {
upsert: true,
member_check: true,
};
const result = await service.edit(1, pushRules);
expect(result).toBeInstanceOf(Object);
expect(result.member_check).toBeTrue();
});
});