|
@@ -228,6 +228,13 @@ describe('app module', () => {
|
|
|
expect(code1).to.equal(0);
|
|
|
});
|
|
|
|
|
|
+ it('returns true when setting non-existent user data folder', async function () {
|
|
|
+ const appPath = path.join(fixturesPath, 'api', 'singleton-userdata');
|
|
|
+ const instance = cp.spawn(process.execPath, [appPath]);
|
|
|
+ const [code] = await emittedOnce(instance, 'exit');
|
|
|
+ expect(code).to.equal(0);
|
|
|
+ });
|
|
|
+
|
|
|
async function testArgumentPassing (testArgs: SingleInstanceLockTestArgs) {
|
|
|
const appPath = path.join(fixturesPath, 'api', 'singleton-data');
|
|
|
const first = cp.spawn(process.execPath, [appPath, ...testArgs.args]);
|