pitaya-launcher/test/desktop.js

36 lines
651 B
JavaScript
Raw Normal View History

var DesktopApps = require('../src/util/desktop-apps');
var DesktopSuite = exports.DesktopSuite = {};
DesktopSuite.findIconThemes = function(test) {
DesktopApps.findIconThemes()
.then(function(themes) {
//console.log(themes);
test.ok(themes.length > 0);
test.done();
})
.catch(function(err) {
test.ifError(err);
test.done();
})
;
};
DesktopSuite.findIcon = function(test) {
2015-08-31 23:08:56 +02:00
DesktopApps.findIcon('phpmyadmin')
.then(function(iconPath) {
2015-08-31 12:24:55 +02:00
console.log('findIcon', iconPath);
test.done();
})
.catch(function(err) {
test.ifError(err);
test.done();
})
;
};