electron-osx-sign/test/basic.js

40 строки
783 B
JavaScript
Исходник Обычный вид История

const sign = require('..');
2015-12-21 17:12:45 +03:00
const waterfall = require('run-waterfall');
2015-12-21 17:12:45 +03:00
const config = require('./config');
const util = require('./util');
2015-12-21 17:12:45 +03:00
function createDefaultsTest (release) {
return function (t) {
t.timeoutAfter(config.timeout);
2015-12-21 17:12:45 +03:00
const opts = {
2019-08-22 10:19:01 +03:00
app: util.generateAppPath(release),
identity: 'codesign.electronjs.org (T123456)'
}; // test with no other options for self discovery
2015-12-21 17:12:45 +03:00
waterfall(
[
function (cb) {
sign(
{
...opts
},
cb
);
},
function (cb) {
t.pass('app signed');
cb();
}
],
function (err) {
t.end(err);
2015-12-21 17:12:45 +03:00
}
);
};
2015-12-21 17:12:45 +03:00
}
util.testAllReleases('defaults-test', createDefaultsTest);