Skip to content

Commit

Permalink
test: Updating push rule test to improve clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalrymple committed May 25, 2019
1 parent c10690c commit 6c5f81b
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { PushRule } from '../../../src';

describe('PushRule', () => {
describe('PushRule.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 PushRule({
url: process.env.GITLAB_URL,
token: process.env.PERSONAL_ACCESS_TOKEN!,
host: process.env.GITLAB_URL,
token: process.env.PERSONAL_ACCESS_TOKEN,
});
const pushRules = {

const result = await service.edit(1, {
upsert: true,
member_check: true,
};
const result = await service.edit(1, pushRules);
memberCheck: true,
});

expect(result).toBeInstanceOf(Object);
expect(result.member_check).toBeTrue();
Expand Down

0 comments on commit 6c5f81b

Please sign in to comment.