Justin Dalrymple 15c841c15b fix: Fixing some minor bugs (#486)
* fix: Change mapping import to be dynamic and fix old reference to humps
* chore: Removing default exports
* fix: Cleaning up .d.ts export
* docs: Adding browser example
* fix: Fixing rollup config

closes: #485
closes: #475
2019-10-28 14:10:54 +01:00

21 lines
611 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
/* eslint jest/no-disabled-tests: 0 */
it.skip('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();
});
});