Skip to content

Commit

Permalink
Merge pull request #312 from happo/prettier
Browse files Browse the repository at this point in the history
Update prettier 3.3.2 to 3.5.1
  • Loading branch information
lencioni authored Feb 13, 2025
2 parents 9edc992 + 2b4bb75 commit 093c587
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"http-server": "^14.1.1",
"jest": "^29.7.0",
"multiparty": "^4.2.2",
"prettier": "^3.3.2",
"prettier": "^3.5.1",
"react": "^16.3.2",
"react-dom": "^16.3.2",
"webpack": "^5.2.0"
Expand Down
12 changes: 9 additions & 3 deletions test/loadUserConfig-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,29 @@ beforeEach(() => {

it('yells if both API tokens are missing', async () => {
requireRelative.mockImplementation(() => ({}));
await expect(loadUserConfig('bogus', {})).rejects.toThrow(/Missing `apiKey` and `apiSecret` in your Happo config/);
await expect(loadUserConfig('bogus', {})).rejects.toThrow(
/Missing `apiKey` and `apiSecret` in your Happo config/,
);
});

it('yells if apiKey is missing', async () => {
requireRelative.mockImplementation(() => ({
apiSecret: '2',
targets: {},
}));
await expect(loadUserConfig('bogus', {})).rejects.toThrow(/Missing `apiKey` in your Happo config/);
await expect(loadUserConfig('bogus', {})).rejects.toThrow(
/Missing `apiKey` in your Happo config/,
);
});

it('yells if apiSecret is missing', async () => {
requireRelative.mockImplementation(() => ({
apiKey: '1',
targets: {},
}));
await expect(loadUserConfig('bogus', {})).rejects.toThrow(/Missing `apiSecret` in your Happo config/);
await expect(loadUserConfig('bogus', {})).rejects.toThrow(
/Missing `apiSecret` in your Happo config/,
);
});

it('yells if targets are missing', async () => {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5880,10 +5880,10 @@ prelude-ls@~1.1.2:
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
integrity sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==

prettier@^3.3.2:
version "3.3.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.3.2.tgz#03ff86dc7c835f2d2559ee76876a3914cec4a90a"
integrity sha512-rAVeHYMcv8ATV5d508CFdn+8/pHPpXeIid1DdrPwXnaAdH7cqjVbpJaT5eq4yRAFU/lsbwYwSF/n5iNrdJHPQA==
prettier@^3.5.1:
version "3.5.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.5.1.tgz#22fac9d0b18c0b92055ac8fb619ac1c7bef02fb7"
integrity sha512-hPpFQvHwL3Qv5AdRvBFMhnKo4tYxp0ReXiPn2bxkiohEX6mBeBwEpBSQTkD458RaaDKQMYSp4hX4UtfUTA5wDw==

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

0 comments on commit 093c587

Please sign in to comment.