Justin f7425a72e2 fix: PushRules were missing from the ProjectBundle export and the README. #373
BREAKING CHANGE: PushRule export was renamed to PushRules to match the plurality of the export names
2019-07-02 13:48:52 -04:00

20 lines
566 B
TypeScript

import { PushRules } from '../../../dist';
describe('PushRules.edit', () => {
// 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 PushRules({
host: process.env.GITLAB_URL,
token: process.env.PERSONAL_ACCESS_TOKEN,
});
const result = await service.edit(1, {
upsert: true,
memberCheck: true,
});
expect(result).toBeInstanceOf(Object);
expect(result.member_check).toBeTrue();
});
});