Skip to content

Commit

Permalink
chore(deps): bump @mdn/browser-compat-data from 5.5.13 to 5.5.17 (#5240)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: William Durand <will+git@drnd.me>
  • Loading branch information
dependabot[bot] and willdurand authored Mar 28, 2024
1 parent 53d2663 commit dc70044
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
8 changes: 4 additions & 4 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 @@ -45,7 +45,7 @@
"homepage": "https://github.com/mozilla/addons-linter#readme",
"dependencies": {
"@fluent/syntax": "0.19.0",
"@mdn/browser-compat-data": "5.5.13",
"@mdn/browser-compat-data": "5.5.17",
"addons-moz-compare": "1.3.0",
"addons-scanner-utils": "9.10.1",
"ajv": "8.12.0",
Expand Down
3 changes: 3 additions & 0 deletions tests/unit/parsers/test.manifestjson.js
Original file line number Diff line number Diff line change
Expand Up @@ -2738,6 +2738,9 @@ describe('ManifestJSONParser', () => {
id: '{daf44bf7-a45e-4450-979c-91cf07434c3d}',
strict_min_version: '55.0.0',
},
gecko_android: {
strict_min_version: '120.0',
},
},
browser_action: {
default_icon: icon,
Expand Down
16 changes: 7 additions & 9 deletions tests/unit/rules/javascript/test.incompatible_browser_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,13 @@ describe('incompatible browser APIs', () => {
});

const { linterMessages } = await runJsScanner(jsScanner);
expect(linterMessages.length).toEqual(2);
for (const msg of linterMessages) {
expect(msg.type).toEqual(VALIDATION_WARNING);
expect(msg.message).toEqual(
expect.stringMatching(
/clipboard\.setImageData is not supported in Firefox(?: for Android)? version 50\.0/
)
);
}
expect(linterMessages.length).toEqual(1);
expect(linterMessages[0].type).toEqual(VALIDATION_WARNING);
expect(linterMessages[0].message).toEqual(
expect.stringMatching(
/clipboard\.setImageData is not supported in Firefox version 50\.0/
)
);
});

it('does not flag APIs that are not implemented on Android', async () => {
Expand Down

0 comments on commit dc70044

Please sign in to comment.