mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-18 15:55:30 +00:00
* chore: Introduce typescript * chore: Remove lodash.pick, use native js instead * chore: Add tslint and extend Airbnb ruleset * chore: Remove Babel Dependency, replace build steps with tsc * chore: change target for modern env from es2017 to es6 (async/await should be transpiled to downlevel js) * chore(package): Updating packages * fix: Fix error while throwing an error in RequestHelper (#156) * feat: Support rejectUnauthorized parameter (#164) * feat: Adding project archive abilities * fix(test): Application settings API updated (#177) * fix: Removing token requirement (#176) * chore: Removing npmignore and using files instead. * fix: obey rate limits for all request types correctly (#170) * fix: Camel casing broke the body params
20 lines
589 B
TypeScript
20 lines
589 B
TypeScript
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();
|
|
});
|
|
});
|