Skip to content

Commit

Permalink
dependencies(prettier): upgrade to 2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hasezoey committed Jun 25, 2021
1 parent 935e460 commit abff587
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 17 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -29,7 +29,7 @@
"jest": "26.6.3",
"lerna": "4.0.0",
"lint-staged": "10.5.4",
"prettier": "2.2.1",
"prettier": "2.3.1",
"semantic-release": "17.3.9",
"ts-jest": "26.5.2",
"typescript": "4.1.3"
Expand Down
Expand Up @@ -40,9 +40,11 @@ describe('MongoBinaryDownload', () => {

await du.download('https://fastdl.mongodb.org/osx/mongodb-osx-ssl-x86_64-3.6.3.tgz');
expect(du.httpDownload).toHaveBeenCalledTimes(1);
const callArg1 = ((du.httpDownload as jest.Mock).mock.calls[0] as Parameters<
MongoBinaryDownload['httpDownload']
>)[1];
const callArg1 = (
(du.httpDownload as jest.Mock).mock.calls[0] as Parameters<
MongoBinaryDownload['httpDownload']
>
)[1];
expect(callArg1.agent).toBeUndefined();
});

Expand All @@ -65,9 +67,11 @@ describe('MongoBinaryDownload', () => {

await du.download('https://fastdl.mongodb.org/osx/mongodb-osx-ssl-x86_64-3.6.3.tgz');
expect(du.httpDownload).toHaveBeenCalledTimes(1);
const callArg1 = ((du.httpDownload as jest.Mock).mock.calls[0] as Parameters<
MongoBinaryDownload['httpDownload']
>)[1];
const callArg1 = (
(du.httpDownload as jest.Mock).mock.calls[0] as Parameters<
MongoBinaryDownload['httpDownload']
>
)[1];
utils.assertion(
!utils.isNullOrUndefined(callArg1.agent),
new Error('Expected "callArg1.agent" to be defined')
Expand All @@ -86,9 +90,11 @@ describe('MongoBinaryDownload', () => {

await du.download('https://fastdl.mongodb.org/osx/mongodb-osx-ssl-x86_64-3.6.3.tgz');
expect(du.httpDownload).toHaveBeenCalledTimes(1);
const callArg1 = ((du.httpDownload as jest.Mock).mock.calls[0] as Parameters<
MongoBinaryDownload['httpDownload']
>)[1];
const callArg1 = (
(du.httpDownload as jest.Mock).mock.calls[0] as Parameters<
MongoBinaryDownload['httpDownload']
>
)[1];
expect(callArg1.rejectUnauthorized).toEqual(false);
});

Expand All @@ -102,9 +108,11 @@ describe('MongoBinaryDownload', () => {

await du.download('https://fastdl.mongodb.org/osx/mongodb-osx-ssl-x86_64-3.6.3.tgz');
expect(du.httpDownload).toHaveBeenCalledTimes(1);
const callArg1 = ((du.httpDownload as jest.Mock).mock.calls[0] as Parameters<
MongoBinaryDownload['httpDownload']
>)[1];
const callArg1 = (
(du.httpDownload as jest.Mock).mock.calls[0] as Parameters<
MongoBinaryDownload['httpDownload']
>
)[1];
expect(callArg1.rejectUnauthorized).toEqual(true);
});

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -8303,10 +8303,10 @@ prettier-linter-helpers@^1.0.0:
dependencies:
fast-diff "^1.1.2"

prettier@2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5"
integrity sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==
prettier@2.3.1:
version "2.3.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.3.1.tgz#76903c3f8c4449bc9ac597acefa24dc5ad4cbea6"
integrity sha512-p+vNbgpLjif/+D+DwAZAbndtRrR0md0MwfmOVN9N+2RgyACMT+7tfaRnT+WDPkqnuVwleyuBIG2XBxKDme3hPA==

pretty-format@^25.5.0:
version "25.5.0"
Expand Down

0 comments on commit abff587

Please sign in to comment.