mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2024-12-22 20:58:52 +00:00
18 lines
503 B
JavaScript
18 lines
503 B
JavaScript
|
|
||
|
const Mock = imports.gi.MockService;
|
||
|
const Secret = imports.gi.SecretUnstable;
|
||
|
const GLib = imports.gi.GLib;
|
||
|
|
||
|
const JsUnit = imports.jsUnit;
|
||
|
const assertNotEquals = JsUnit.assertNotEquals;
|
||
|
|
||
|
Mock.start("mock-service-normal.py");
|
||
|
|
||
|
var service = SecretUnstable.Service.get_sync(SecretUnstable.ServiceFlags.NONE);
|
||
|
var path = service.read_alias_dbus_path_sync("default", null);
|
||
|
|
||
|
/* Just running this without error is good enough for us to test the unstable gir */
|
||
|
assertNotEquals(path, null);
|
||
|
|
||
|
Mock.stop();
|