Skip to content

Commit

Permalink
chore(deps): update dependency eslint-plugin-jest to v27 (#826)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: peaceiris <30958501+peaceiris@users.noreply.github.com>
  • Loading branch information
renovate[bot] and peaceiris authored Jan 17, 2023
1 parent 9839780 commit 9b7ce2a
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 21 deletions.
2 changes: 1 addition & 1 deletion __tests__/get-inputs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,6 @@ describe('getInputs()', () => {

expect(() => {
getInputs();
}).toThrowError('Use either of enable_jekyll or disable_nojekyll');
}).toThrow('Use either of enable_jekyll or disable_nojekyll');
});
});
10 changes: 3 additions & 7 deletions __tests__/git-utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ describe('setRepo()', () => {
const date = new Date();
const unixTime = date.getTime();
const workDir = await getWorkDirName(`${unixTime}`);
await expect(setRepo(inps, remoteURL, workDir)).rejects.toThrowError(
await expect(setRepo(inps, remoteURL, workDir)).rejects.toThrow(
'destination_dir should be a relative path'
);
});
Expand Down Expand Up @@ -241,17 +241,13 @@ describe('setCommitAuthor()', () => {
test('throw error user_email is undefined', async () => {
const userName = 'custom-octocat';
const userEmail = '';
await expect(setCommitAuthor(userName, userEmail)).rejects.toThrowError(
'user_email is undefined'
);
await expect(setCommitAuthor(userName, userEmail)).rejects.toThrow('user_email is undefined');
});

test('throw error user_name is undefined', async () => {
const userName = '';
const userEmail = 'custom-octocat@github.com';
await expect(setCommitAuthor(userName, userEmail)).rejects.toThrowError(
'user_name is undefined'
);
await expect(setCommitAuthor(userName, userEmail)).rejects.toThrow('user_name is undefined');
});
});

Expand Down
6 changes: 3 additions & 3 deletions __tests__/set-tokens.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ describe('setGithubToken()', () => {
'refs/heads/gh-pages-base',
'push'
);
}).toThrowError('You deploy from gh-pages-base to gh-pages-base');
}).toThrow('You deploy from gh-pages-base to gh-pages-base');
});

test('throw error master to master', () => {
expect(() => {
setGithubToken('GITHUB_TOKEN', 'owner/repo', 'master', '', 'refs/heads/master', 'push');
}).toThrowError('You deploy from master to master');
}).toThrow('You deploy from master to master');
});

test('throw error external repository with GITHUB_TOKEN', () => {
Expand All @@ -89,7 +89,7 @@ describe('setGithubToken()', () => {
'refs/heads/master',
'push'
);
}).toThrowError(`\
}).toThrow(`\
The generated GITHUB_TOKEN (github_token) does not support to push to an external repository.
Use deploy_key or personal_token.
`);
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"@vercel/ncc": "^0.36.0",
"eslint": "^8.32.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-jest": "^26.9.0",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.3",
"jest": "^29.3.1",
Expand Down

0 comments on commit 9b7ce2a

Please sign in to comment.