Skip to content

Commit c9e4c8c

Browse files
committed
test(travis-cli): remove redundant tests
1 parent dc7faab commit c9e4c8c

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

@commitlint/travis-cli/src/cli.test.js

-18
Original file line numberDiff line numberDiff line change
@@ -43,24 +43,6 @@ test('should throw when on travis ci, but env vars are missing', async () => {
4343
);
4444
});
4545

46-
test('should throw when on travis ci, but TRAVIS_COMMIT is missing', async () => {
47-
const env = {
48-
TRAVIS: true,
49-
CI: true
50-
};
51-
52-
await expect(cli({env})).rejects.toContain('TRAVIS_COMMIT');
53-
});
54-
55-
test('should throw when on travis ci, but TRAVIS_BRANCH is missing', async () => {
56-
const env = {
57-
TRAVIS: true,
58-
CI: true
59-
};
60-
61-
await expect(cli({env})).rejects.toContain('TRAVIS_BRANCH');
62-
});
63-
6446
/*
6547
test('should call git with expected args on shallow repo', async () => {
6648
const cwd = await git.clone(

0 commit comments

Comments
 (0)