Skip to content

Commit db639f4

Browse files
author
tvinzz
committed
fixed api and tests
1 parent 4bf4e8c commit db639f4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

node-safari-converter/src/api.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ module.exports = (function () {
5858

5959
return new Promise((resolve, reject) => {
6060
const child = runScript(converterToolPath || CONVERTER_TOOL_PATH, [
61-
`-safariVersion=${currentSafariVersion}`,
62-
'-optimize=false',
63-
`-advancedBlocking=${advancedBlocking}`,
61+
`--safari-version=${currentSafariVersion}`,
62+
'--optimize=false',
63+
`--advanced-blocking=${advancedBlocking}`,
6464
], (code, stdout, stderr) => {
6565
if (code !== 0) {
6666
reject(new Error(stderr));

node-safari-converter/test/api.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe('API test', () => {
1919
const rules = ['example.com##.ads-banner'];
2020

2121
await expect(jsonFromRules(rules, false, safariVersions.safari12))
22-
.rejects.toThrow('AG: ContentBlockerConverter: Unexpected error: unsupportedSafariVersion(version: 12)');
22+
.rejects.toThrow('Error: The provided Safari version is not supported');
2323
});
2424

2525
it('getConverterVersion test', () => {

0 commit comments

Comments
 (0)