Skip to content
Snippets Groups Projects
Commit 8e266c61 authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

update front end tests which verify that expected functions are present

parent 3cd8065c
No related branches found
No related tags found
No related merge requests found
......@@ -15,15 +15,21 @@
test("expected public API functions available", function() {
_.each([
"get",
"request",
"setLoggedInUser",
"logout",
"addEventListener",
"removeEventListener"
"getVerifiedEmail",
"logout"
], function(item, index) {
equal(typeof navigator.id[ item ], "function", "navigator.id." + item + " is available");
});
});
test("expected experimental API function is available", function() {
_.each([
"request",
"watch"
], function(item, index) {
equal(typeof navigator.id.experimental[ item ], "function", "navigator.id." + item + " is available");
});
});
}());
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment