diff --git a/services/sync/tests/unit/test_utils_anno.js b/services/sync/tests/unit/test_utils_anno.js index 4a1e2f393af..3e33f4334d1 100644 --- a/services/sync/tests/unit/test_utils_anno.js +++ b/services/sync/tests/unit/test_utils_anno.js @@ -20,4 +20,14 @@ function run_test() { _("sanity check that the item anno is still there"); do_check_eq(Utils.anno(1, "anno"), "hi"); + + _("invalid uris don't get annos"); + let didThrow = false; + try { + Utils.anno("foo/bar/baz", "bad"); + } + catch(ex) { + didThrow = true; + } + do_check_true(didThrow); }