Skip to content

Commit

Permalink
cleaned up as per review by @gijsk
Browse files Browse the repository at this point in the history
  • Loading branch information
crankycoder committed Jun 15, 2017
1 parent 4a222ab commit bbd1bdb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions recipe-client-addon/test/browser/browser_NormandyDriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,17 @@ add_task(withDriver(Assert, async function installXpi(driver) {
}));

add_task(withDriver(Assert, async function uninstallInvalidAddonId(driver) {
// Test that we can install an XPI from any URL
const invalidAddonId = "not_a_valid_xpi_id@foo.bar";
try {
await driver.uninstallAddon(invalidAddonId);
ok(false, `Uninstall returned an unexpected null for success`);
ok(false, `Uninstalling an invalid XPI should fail. uninstallAddon resolved successfully though.`);
} catch (e) {
ok(true, `This is the expected failure`);
}
}));


add_task(withDriver(Assert, async function installXpiBadURL(driver) {
// Test that we can install an XPI from any URL
const xpiUrl = "file:///tmp/invalid_xpi.xpi";
try {
await driver.installAddon(xpiUrl);
Expand Down

0 comments on commit bbd1bdb

Please sign in to comment.